CheckedListBox.CheckedIndexCollection.Item[Int32] 屬性

定義

取得 CheckedListBox 控制項中已選取項目的索引。Gets the index of a checked item in the CheckedListBox control.

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

參數

index
Int32

已選取索引集合內的索引。An index into the checked indexes collection. 這個索引指定您想要擷取之已選取項目的索引。This index specifies the index of the checked item you want to retrieve.

屬性值

已選取項目的索引。The index of the checked item. 如需詳細資訊,請參閱 CheckedListBox.CheckedIndexCollection 類別概觀中的範例。For more information, see the examples in the CheckedListBox.CheckedIndexCollection class overview.

屬性

例外狀況

index 小於零。The index is less than zero.

-或--or- index 不在集合中。The index is not in the collection.

備註

index 參數是已檢查索引集合中的索引。The index parameter is an index into the checked indexes collection. 傳回值是對應的索引值,這是 items 集合中核取專案的索引。The return value is the corresponding indexed value, which is the index of the checked item in the items collection.

適用於

另請參閱