EditorButtonCollection.Item[Int32] Property
Gets a button at the specified position.
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
public EditorButton this[int index] { get; }
#Parameters
Name | Type | Description |
---|---|---|
index | Int32 | The zero-based index of the button to return. |
#Property Value
Type | Description |
---|---|
Editor |
An Editor |
#Remarks
This property provides access to individual buttons within the collection by their indexes. The index parameter identifies the zero-based index of the button in the collection. The total number of buttons is determined by the Count property.
If index denotes a value greater than Count - 1, an System.ArgumentOutOfRangeException type exception is thrown.
The EditorButtonCollection.IndexOf method performs the opposite operation. It allows you to return the position of a specific button in the current collection.