| C1.Web.Wijmo.Controls.C1ComboBox Namespace > C1ComboBox Class : SelectedItem Property |
'Declaration<System.ComponentModel.BrowsableAttribute(False)> <System.ComponentModel.DefaultValueAttribute()> <System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> <System.ComponentModel.BindableAttribute(Bindable=False, Direction=BindingDirection.OneWay)> Public Overridable ReadOnly Property SelectedItem As C1ComboBoxItem
[System.ComponentModel.Browsable(false)] [System.ComponentModel.DefaultValue()] [System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [System.ComponentModel.Bindable(Bindable=false, Direction=BindingDirection.OneWay)] public virtual C1ComboBoxItem SelectedItem {get;}
C1ComboBox c = new C1ComboBox(); c.Items.Add(new C1ComboBoxItem("test1")); c.Items.Add(new C1ComboBoxItem("test2")); c.SelectedIndex = 1; // item will refer to test2. C1ComboBoxItem item = c.SelectedItem;
Target Platforms: 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