GetItemIndex Method (ListView)

Class

ListView.

Action

Returns the index of the list view item or -1 if is not found.

Syntax

C#
itemIndex = listView.GetItemIndex(item)
VB
itemIndex = listView.GetItemIndex(item)
Variable Description
itemIndex Integer.
item The item to get the index for. ItemIdentifier.