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

已選取項目的索引。

傳回

Int32

索引,其指定已選取項目的索引;如果 index 參數不在已選取的索引集合中,則為 –1。 如需詳細資訊,請參閱 CheckedListBox.CheckedIndexCollection 類別概觀中的範例。

備註

參數 index 是專案集合中已核取專案的索引。 傳回值是已核取索引集合中的對應索引。

適用於

另請參閱