[]
Gets the index of the RibbonGroup with the given name.
public int IndexOf(string name)
| Type | Name | Description |
|---|---|---|
| string | name | String containing the name of the item to locate (case-sensitive). |
| Type | Description |
|---|---|
| int | The index of the object in the collection, or -1 if the name was not found. |
Determines the index of the specified RibbonGroup in this RibbonGroupCollection.
public int IndexOf(RibbonGroup group)
| Type | Name | Description |
|---|---|---|
| RibbonGroup | group | The RibbonGroup to locate in the collection. |
| Type | Description |
|---|---|
| int | The zero-based index of group if found in the RibbonGroupCollection; otherwise, -1. |