ListItemCollection.IndexOf(ListItem) Método
Definição
public:
int IndexOf(System::Web::UI::WebControls::ListItem ^ item);
public int IndexOf (System.Web.UI.WebControls.ListItem item);
member this.IndexOf : System.Web.UI.WebControls.ListItem -> int
Public Function IndexOf (item As ListItem) As Integer
Parâmetros
Retornos
A posição de índice do ListItem especificado na coleção.The index position of the specified ListItem in the collection.
Comentários
Use o IndexOf método para determinar o valor de índice do ListItem especificado pelo item parâmetro na coleção.Use the IndexOf method to determine the index value of the ListItem specified by the item parameter in the collection. Se um item com esses critérios não for encontrado na coleção, -1 será retornado.If an item with this criteria is not found in the collection, -1 is returned.