ListBox.ObjectCollection.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 item at the specified index within the collection.
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)>]
member this.Item(int) : obj with get, set
Default Public Overridable Property Item(index As Integer) As Object
Parameters
- index
- Int32
The index of the item in the collection to get or set.
Property Value
An object representing the item located at the specified index within the collection.
Implements
- Attributes
Exceptions
The index
parameter is less than zero or greater than or equal to the value of the Count property of the ListBox.ObjectCollection class.
Remarks
You can use this method to obtain the ListBox item stored at a specific location within the collection. To determine the index of a specific item within the collection, use the IndexOf method.