Redigera

Dela via


ListSortDescriptionCollection.Item[Int32] Property

Definition

Gets or sets the specified ListSortDescription.

public:
 property System::ComponentModel::ListSortDescription ^ default[int] { System::ComponentModel::ListSortDescription ^ get(int index); void set(int index, System::ComponentModel::ListSortDescription ^ value); };
public System.ComponentModel.ListSortDescription this[int index] { get; set; }
public System.ComponentModel.ListSortDescription? this[int index] { get; set; }
member this.Item(int) : System.ComponentModel.ListSortDescription with get, set
Default Public Property Item(index As Integer) As ListSortDescription

Parameters

index
Int32

The zero-based index of the ListSortDescription to get or set in the collection.

Property Value

The ListSortDescription with the specified index.

Exceptions

An item is set in the ListSortDescriptionCollection, which is read-only.

Remarks

The ListSortDescriptionCollection is read-only once constructed and will throw an InvalidOperationException if you attempt to set an item.

Applies to