Skip to main content

TileNavButtonCollection.IndexOf(ITileNavButton) Method

Returns the index of a specific ITileNavButton in the TileNavButtonCollection.

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v24.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