CustomComboBoxSelectedIndex Property

Gets or sets the index specifying the currently selected item.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskSchedulerEditor (in Microsoft.Win32.TaskSchedulerEditor.dll) Version: 2.11.0
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)]
[BrowsableAttribute(false)]
public int SelectedIndex { get; set; }

Property Value

Int32

Return Value

Int32
A zero-based index of the currently selected item. A value of negative one (-1) is returned if no item is selected.

Exceptions

ArgumentOutOfRangeException The specified index is less than or equal to -2. -or- The specified index is greater than or equal to the number of items in the combo box.

See Also