ListBox.SelectedObjectCollection.Item[Int32] 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取集合中指定索引处的项。
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; }
[System.ComponentModel.Browsable(false)]
public object? this[int index] { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.Item(int) : obj with get, set
Default Public Property Item(index As Integer) As Object
参数
- index
- Int32
要检索的集合中项的索引。
属性值
一个对象,表示位于集合中指定索引处的项。
实现
- 属性
例外
参数index小于零或大于或等于类的属性Count的值ListBox.SelectedObjectCollection。
注解
使用此索引器可从中 ListBox.SelectedObjectCollection获取特定项。 存储在此集合中的项ListBox.ObjectCollectionListBox是表示所选项的项。ListBox