System.Windows.Forms.AutoCompleteStringCollection.IndexOf Method

Obtains the position of the specified string within the collection.

Syntax

public int IndexOf (string value)

Parameters

value
The string for which to search.

Returns

The index for the specified item.

Remarks

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

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0