Table of Contents

Method GetItemIndex

Namespace
Alternet.Maui
Assembly
Alternet.UI.Maui.dll

GetItemIndex(IToolBarItem?)

Gets the index of the specified toolbar item.

public virtual int GetItemIndex(SimpleToolBarView.IToolBarItem? item)

Parameters

item SimpleToolBarView.IToolBarItem

The toolbar item to find.

Returns

int

The zero-based index of the toolbar item if found; otherwise, -1.