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

TileNavButtonCollection.IndexOf(ITileNavButton) Method

Returns the index of a specific ITileNavButton in the TileNavButtonCollection.

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v19.2.dll

Declaration

public int IndexOf(
    ITileNavButton button
)

Parameters

Name Type Description
button ITileNavButton

The ITileNavButton to locate in the collection.

Returns

Type Description
Int32

The index of button if found in the collection; otherwise, -1;

Remarks

If an object occurs multiple times in the collection, the IndexOf method returns the first instance found.

See Also