แก้ไข

แชร์ผ่าน


BindingSource.Item[Int32] Property

Definition

Gets or sets the list element at the specified index.

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

Parameters

index
Int32

The zero-based index of the element to retrieve.

Property Value

The element at the specified index.

Implements

Attributes

Exceptions

index is less than zero or is equal to or greater than Count.

Remarks

The Item[] property represents the indexer for this class. It accepts null as a valid value and allows duplicate items within the list.

Setting a value will raise the ListChanged event.

Applies to

See also