[]
Gets or sets the RibbonButton at the specified position in the collection.
public RibbonButton this[int index] { get; set; }
| Type | Name | Description |
|---|---|---|
| int | index | Index of the item. |
| Type | Description |
|---|---|
| RibbonButton | The RibbonButton at the specified |
Gets the RibbonButton with the specified name.
public RibbonButton this[string name] { get; }
| Type | Name | Description |
|---|---|---|
| string | name | String containing the name of the button to locate (case-sensitive). |
| Type | Description |
|---|---|
| RibbonButton | The RibbonButton with the specified |
If the collection does not contain a button with the specified name,
an ArgumentOutOfRangeException exception is thrown.