語言

BindingSource.Item[Int32] 屬性

定義

取得或設定清單元素在指定的索引位置。

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

要檢索元素的零基索引。

屬性值

位於指定索引的元素。

實作

屬性

例外狀況

index 小於零或等於或大於 Count。

備註

屬性 Item[] 代表此類別的索引器。 它接受 null 有效值,並允許清單內重複項目。

設定一個數值會提升事件。ListChanged

適用於

另請參閱