Ribbon for WinForms | ComponentOne
C1.Win.Ribbon Namespace / RibbonItemCollection 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 String _
    ) As Boolean
    public bool Contains( 
       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