แก้ไข

แชร์ผ่าน


ListBox.ObjectCollection.Item[Int32] Property

Definition

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.

Applies to