FlexChart | ComponentOne
C1.Win.Ribbon.8 Assembly / C1.Win.Ribbon 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