[]
        
(Showing Draft Content)

C1.Win.Ribbon.RibbonGroupCollection.IndexOf

IndexOf Method

IndexOf(string)

Gets the index of the RibbonGroup with the given name.

Declaration
public int IndexOf(string name)
Parameters
Type Name Description
string name

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

Returns
Type Description
int

The index of the object in the collection, or -1 if the name was not found.

IndexOf(RibbonGroup)

Determines the index of the specified RibbonGroup in this RibbonGroupCollection.

Declaration
public int IndexOf(RibbonGroup group)
Parameters
Type Name Description
RibbonGroup group

The RibbonGroup to locate in the collection.

Returns
Type Description
int

The zero-based index of group if found in the RibbonGroupCollection; otherwise, -1.