Skip to main content

EditButtonCollection.IndexOf(EditButton) Method

Searches for the specified edit button and returns the zero-based index of its first occurrence within the collection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web


public int IndexOf(
    EditButton item


Name Type Description
item EditButton

An EditButton object representing the button to locate in the collection.


Type Description

The zero-based index of the first occurrence of the specified edit button within the collection, if found; otherwise, negative one (-1).


The IndexOf method lets you find the button specified by the item parameter within the current collection.

This method searches the collection for the specified item and if found returns the index value of its first occurrence. If no instance is found, negative one (-1) is returned. The collection is searched in a forwards direction starting at the first element and ending at the last element.

See Also