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 事件。

適用於

另請參閱