语言

AutoCompleteStringCollection.IndexOf(String) 方法

定义

获取集合中指定字符串的位置。

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

参数

value
String

要 String 搜索的项。

返回

指定项的索引。

注解

返回 IndexOf 集合中字符串的第一个匹配项的索引。

适用于