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

EditorButtonCollection.IndexOf(EditorButton) Method

Gets the position of the specified button in the current button collection.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

public virtual int IndexOf(
    EditorButton button
)

Parameters

Name Type Description
button EditorButton

The EditorButton object to locate in the collection.

Returns

Type Description
Int32

The zero-based index of the button in the collection.

Remarks

The IndexOf method returns the position of the specified button in the current button collection. If the button does not belong to the collection, the function returns -1.

The following code snippets (auto-collected from DevExpress Examples) contain references to the IndexOf(EditorButton) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also