Upravit

Sdílet prostřednictvím


AutoCompleteStringCollection.IndexOf(String) Method

Definition

Obtains the position of the specified string within the collection.

public:
 int IndexOf(System::String ^ value);
public int IndexOf (string value);
member this.IndexOf : string -> int
Public Function IndexOf (value As String) As Integer

Parameters

value
String

The String for which to search.

Returns

The index for the specified item.

Remarks

The IndexOf returns the index for the first occurrence of the string within the collection.

Applies to