The index of the item selected in the DropDownBox. First item is selected by default.
Syntax
| Visual Basic (Declaration) | |
|---|
<ResDescriptionAttribute("The index of the selected item. Use -1 to specify no selection.")>
<NotifyParentPropertyAttribute(True)>
<DefaultValueAttribute()>
<ResCategoryAttribute("DropDownBox")>
Public Property SelectedIndex As Integer |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As DropDownBox
Dim value As Integer
instance.SelectedIndex = value
value = instance.SelectedIndex
|
| C# | |
|---|
[ResDescriptionAttribute("The index of the selected item. Use -1 to specify no selection.")]
[NotifyParentPropertyAttribute(true)]
[DefaultValueAttribute()]
[ResCategoryAttribute("DropDownBox")]
public int SelectedIndex {get; set;} |
Remarks
See Also