ComboBox.ObjectCollection.Item[Int32] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在集合中指定的索引處取得該項目。
public:
virtual property System::Object ^ default[int] { System::Object ^ get(int index); void set(int index, System::Object ^ value); };
[System.ComponentModel.Browsable(false)]
public virtual object this[int index] { get; set; }
[System.ComponentModel.Browsable(false)]
public virtual object? this[int index] { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.Item(int) : obj with get, set
Default Public Overridable Property Item(index As Integer) As Object
參數
- index
- Int32
集合中要檢索項目的索引。
屬性值
一個物件,代表位於集合中指定索引的項目。
實作
- 屬性
例外狀況
備註
你可以用這個方法在收藏中指定的位置取得該物品。 你可以用它 IndexOf 來查找物品的位置,或者使用該 Add 方法的索引回報。