ComponentOne Ribbon for WinForms
C1.Win.C1Ribbon.4.5.2 Assembly / C1.Win.C1Ribbon Namespace / RibbonItemCollectionBase Class / Contains Method / Contains(String) Method
String containing the name of the item to locate (case-sensitive).

In This Topic
    Contains(String) Method
    In This Topic
    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