[]
        
(Showing Draft Content)

C1.Win.Ribbon.RibbonItemCollectionBase.Contains

Contains Method

Contains(string)

Determines whether the collection contains a RibbonItem with the given name.

Declaration
public bool Contains(string name)
Parameters
Type Name Description
string name

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

Returns
Type Description
bool

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.

Contains(RibbonItem)

Determines whether this collection contains the specified RibbonItem.

Declaration
public bool Contains(RibbonItem item)
Parameters
Type Name Description
RibbonItem item
Returns
Type Description
bool