ListItemCollection.IndexOf(ListItem) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines the index value that represents the position of the specified ListItem in the collection.
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
Parameters
Returns
The index position of the specified ListItem in 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.
Applies to
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.