'Declaration Public Overloads ReadOnly Property Item( _ ByVal name As System.String _ ) As RibbonItem
public RibbonItem Item( System.string name ) {get;}
Parameters
- name
- String containing the name of the item to locate (case-sensitive).
'Declaration Public Overloads ReadOnly Property Item( _ ByVal name As System.String _ ) As RibbonItem
public RibbonItem Item( System.string name ) {get;}
If an item with the specified name is not found, an System.ArgumentOutOfRangeException exception is thrown.
This method can be used to retrieve RibbonItem objects that are contained in RibbonToolBar objects, and are not direct members of the collection.
// get the group that contains the button RibbonGroup g = c1Ribbon1.Tabs["Editor"].Groups["Font"]; // get the button within the group RibbonToggleButton btn = (RibbonToggleButton)g.Items["BoldButton"];