CheckedListBox.CheckedIndexCollection.IndexOf(Int32) 方法

定义

将索引返回到已检查索引的集合中。

public:
 int IndexOf(int index);
public int IndexOf(int index);
member this.IndexOf : int -> int
Public Function IndexOf (index As Integer) As Integer

参数

index
Int32

已检查项的索引。

返回

指定已检查项的索引或 -1 如果 index 参数不在选中索引集合中。 有关详细信息,请参阅类概述中的 CheckedListBox.CheckedIndexCollection 示例。

注解

参数 index 是项集合中选中项的索引。 返回值是检查索引集合中的相应索引。

适用于

另请参阅