Radio Button ListSelected Index Property
Gets or sets the index specifying the currently selected item
Definition
Namespace: EWSoftware.ListControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
C#
public override int SelectedIndex { get; set; }VB
Public Overrides Property SelectedIndex As Integer
Get
SetC++
public:
virtual property int SelectedIndex {
int get () override;
void set (int value) override;
}F#
abstract SelectedIndex : int with get, set
override SelectedIndex : int with get, setProperty Value
Int32This is a zero-based index into the items collection. A value of -1 indicates that there is no current selection.
Setting a new index value will raise the SelectedIndexChanged event.
If EnforceDefaultSelection is true, a SelectedIndex of -1 (no selection) is not allowed. Instead, the index specified by the DefaultSelection property is used instead. If the default value is outside the range of the data source, the last item is selected.
Exceptions
| ArgumentOutOfRangeException | This is thrown if the index is less than -1 or greater than the number of items in the collection. |