CheckedListBox.CheckedItemCollection.Item[Int32] 属性

定义

获取选中项集合中的一个对象。Gets an object in the checked items collection.

public:
 property System::Object ^ default[int] { System::Object ^ get(int index); void set(int index, System::Object ^ value); };
[System.ComponentModel.Browsable(false)]
public object this[int index] { get; set; }
member this.Item(int) : obj with get, set
Default Public Property Item(index As Integer) As Object

参数

index
Int32

选中项集合中的一个索引。An index into the collection of checked items. 该集合索引对应于选中项的索引。This collection index corresponds to the index of the checked item.

属性值

指定索引处的对象。The object at the specified index. 有关更多信息,请参见 CheckedListBox.CheckedItemCollection 类概述中的示例。For more information, see the examples in the CheckedListBox.CheckedItemCollection class overview.

实现

属性

异常

无法设置对象。The object cannot be set.

注解

集合是Items集合中对象的子集, 只表示已选中的项。 CheckedItemsThe CheckedItems collection is a subset of the objects in the Items collection, representing only items that are checked. 此集合按升序排序。This collection is ordered in ascending order.

适用于

另请参阅