CheckedListBox.CheckedIndexCollection.Item[Int32] 屬性

定義

取得 CheckedListBox 控制項中已選取項目的索引。

public:
 property int default[int] { int get(int index); };
[System.ComponentModel.Browsable(false)]
public int this[int index] { get; }
[<System.ComponentModel.Browsable(false)>]
member this.Item(int) : int
Default Public ReadOnly Property Item(index As Integer) As Integer

參數

index
Int32

已選取索引集合內的索引。 這個索引指定您想要擷取之已選取項目的索引。

屬性值

Int32

已選取項目的索引。 如需詳細資訊,請參閱 CheckedListBox.CheckedIndexCollection 類別概觀中的範例。

屬性

例外狀況

index 小於零。

-或- index 不在集合中。

備註

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

適用於

另請參閱