asp.net.ph

ControlCollection.IndexOf Method

System.Web.UI Namespace   ControlCollection Class


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

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

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

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

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

Parameters

item
The Control to search for in the collection.

Return Value

The index of the specified server control.

Remarks

Use the IndexOf method to determine the index value of the Control 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

ControlCollection 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