System.Windows.Forms.DomainUpDown.SelectedIndex Property

Gets or sets the index value of the selected item.

Syntax

[System.ComponentModel.DefaultValue(-1)]
[System.ComponentModel.Browsable(false)]
public int SelectedIndex { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The DomainUpDown.SelectedIndex property holds the index value of the item in the collection that is currently selected in the spin box (also known as an up-down control). Collection items can be reassigned new index values if the DomainUpDown.Sorted property has been changed from false to true. As the collection is re-sorted alphabetically, the items will be assigned a new index value.

Note:

If the user has entered an item in the spin box, or if no item has been selected, the DomainUpDown.SelectedIndex value will be the default value, -1.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0