NetXP 3.0 Reference

ListBarItemCollection.IndexOf Method 

Returns the 0-based index of the specified item in the collection if present, -1 otherwise.

[Visual Basic]
Public Function IndexOf( _
   ByVal item As ListBarItem _
) As Integer
[C#]
public int IndexOf(
   ListBarItem item
);

Parameters

item
The ListBarItem to check.

Return Value

The 0-based index of the specified item in the collection if present, -1 otherwise.

See Also

ListBarItemCollection Class | NETXP.Controls.Bars Namespace