| C1.Web.Wijmo.Controls.C1ComboBox Namespace > C1ComboBox Class : SelectedIndices Property |
'Declaration<WidgetOptionAttribute()> <System.ComponentModel.DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> <System.ComponentModel.BrowsableAttribute(False)> Public Overridable Property SelectedIndices As System.Collections.ArrayList
[WidgetOption()] [System.ComponentModel.DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [System.ComponentModel.Browsable(false)] public virtual System.Collections.ArrayList SelectedIndices {get; set;}
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;
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