Skip to main content
A newer version of this page is available. .

EditorButtonCollection.Item[Int32] Property

Gets a button at the specified position.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v19.1.dll

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
EditorButton

An EditorButton object at the specified position in the current collection.

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.

See Also