| C1.Web.Wijmo.Controls.C1ComboBox Namespace > C1ComboBox Class : SelectedItems Property |
'Declaration<System.ComponentModel.BindableAttribute(Bindable=False, Direction=BindingDirection.OneWay)> <System.ComponentModel.DefaultValueAttribute()> <System.ComponentModel.BrowsableAttribute(False)> <System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> Public Overridable ReadOnly Property SelectedItems As C1ComboBoxItem()
[System.ComponentModel.Bindable(Bindable=false, Direction=BindingDirection.OneWay)] [System.ComponentModel.DefaultValue()] [System.ComponentModel.Browsable(false)] [System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public virtual C1ComboBoxItem[] SelectedItems {get;}
C1ComboBox c = new C1ComboBox(); c.Items.Add(new C1ComboBoxItem("test1")); c.Items.Add(new C1ComboBoxItem("test2")); c.SelectionMode = C1ComboBoxSelectionMode.Multiple; ArrayList indicesToSelect = new ArrayList(); indicesToSelect.Add(0); indicesToSelect.Add(1); // select 2 items. c.SelectedIndices = indicesToSelect; C1ComboBoxItem[] items = new C1ComboBoxItem[2]; items = c.SelectedItems;
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