TileNavButtonCollection.IndexOf(ITileNavButton) Method

Returns the index of a specific ITileNavButton in the TileNavButtonCollection.

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v20.2.dll

Declaration

public int IndexOf(
    ITileNavButton button
)
Public Function IndexOf(
    button As ITileNavButton
) As Integer

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