Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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
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