| C1.Win.C1Ribbon.4 Assembly > C1.Win.C1Ribbon Namespace > RibbonGalleryItemCollection Class > Item Property : Item(String) Property |
'Declaration Public Overloads ReadOnly Property Item( _ ByVal name As System.String _ ) As RibbonGalleryItem
public RibbonGalleryItem Item( System.string name ) {get;}
If an item with the specified name is not found, an System.ArgumentOutOfRangeException exception is thrown.
// get the group that contains the button RibbonGroup g = c1Ribbon1.Tabs["Editor"].Groups["Font"]; // get the RibbonGallery within the group RibbonGallery gallery = (RibbonGallery)g.Items["Gallery"];