語言

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

一個檢查過的索引集合的索引。 這個索引指定你想要檢索的已檢查項目的索引。

屬性值

被勾選項目的索引。 更多資訊請參閱課程概述中的範例 CheckedListBox.CheckedIndexCollection 。

屬性

例外狀況

這個數字 index 小於零。

-或-

這個 index 並不在收藏中。

備註

參數 index 是檢查索引集合的索引。 回傳值是對應的索引值,即項目集合中檢查項目的索引。

適用於

另請參閱