Xceed Toolkit for Maui v2.0 Documentation
SelectedIndex Property (ComboBox)


Xceed.Maui.Toolkit Assembly > Xceed.Maui.Toolkit Namespace > ComboBox Class : SelectedIndex Property
Gets or sets the index associated with the currently selected item.
Syntax
'Declaration
 
Public Property SelectedIndex As Integer
'Usage
 
Dim instance As ComboBox
Dim value As Integer
 
instance.SelectedIndex = value
 
value = instance.SelectedIndex
public int SelectedIndex {get; set;}
Remarks
The value of this property must be between -1, which means that no selection is made, and the number of items in the ComboBox - 1.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ComboBox Class
ComboBox Members