asp.net.ph

ListItemCollection.IndexOf Method

System.Web.UI.WebControls Namespace   ListItemCollection Class


Returns the index value that represents the position of the specified ListItem within the collection.

[ VB ]
Public Function IndexOf ( _
   ByVal item As ListItem _
) As Integer

[ C# ]
public int IndexOf (
   ListItem item
);

[ C++ ]
public: int IndexOf (
   ListItem* item
);

[ JScript ]
public function IndexOf (
   item : ListItem
) : int;

Parameters

item
The ListItem to search for in the collection.

Return Value

The index number of the specified ListItem within the collection.

Remarks

Use the IndexOf method to determine the index value of the ListItem specified by the item parameter in the collection. If an item with this criteria is not found in the collection, -1 is returned.

See Also

ListItemCollection Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph