CheckedListBox.CheckedIndexCollection.Item[Int32] 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取控件中已选中项的 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 参数是已检查索引集合中的索引。 返回值是相应的索引值,该值是项集合中选中项的索引。