ComponentOne Ribbon for WinForms
Contains(String) Method

C1.Win.C1Ribbon.4 Assembly > C1.Win.C1Ribbon Namespace > RibbonItemCollectionBase Class > Contains Method : Contains(String) Method
String containing the name of the item to locate (case-sensitive).
Determines whether the collection contains a RibbonItem with the given name.
Syntax
'Declaration
 
Public Overloads Function Contains( _
   ByVal name As System.String _
) As System.Boolean
public System.bool Contains( 
   System.string name
)

Parameters

name
String containing the name of the item to locate (case-sensitive).

Return Value

True if the RibbonGroup or any of the RibbonToolBar or RibbonToggleGroup objects in the group contains a RibbonItem with the given name.
Remarks
Use the string indexer to locate RibbonItem objects by name.
See Also

Reference

RibbonItemCollectionBase Class
RibbonItemCollectionBase Members
Overload List