BindingSource.Item[Int32] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.