Edit

Share via


HtmlSelect.SelectedIndices Property

Definition

Gets a collection that contains the zero-based indexes of all currently selected items in the HtmlSelect control.

protected:
 virtual property cli::array <int> ^ SelectedIndices { cli::array <int> ^ get(); };
protected virtual int[] SelectedIndices { get; }
member this.SelectedIndices : int[]
Protected Overridable ReadOnly Property SelectedIndices As Integer()

Property Value

Int32[]

A collection that contains the zero-based indexes of all currently selected items in the HtmlSelect control.

Remarks

The SelectedIndices property is used by the HtmlSelect class to return a collection that contains the zero-based indexes of all currently selected items in the HtmlSelect control.

Control developers extending the functionality of the HtmlSelect class can override the SelectedIndices property to provide a custom algorithm for returning currently selected items.

Applies to