Gets the SelectedItems of C1ComboBox.
Namespace:
C1.Web.UI.Controls.C1ComboBoxAssembly: C1.Web.UI.Controls.3 (in C1.Web.UI.Controls.3.dll)
Syntax
C# |
---|
[BindableAttribute(false)] [DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)] [DefaultValueAttribute(null)] [BrowsableAttribute(false)] public virtual C1ComboBoxItem[] SelectedItems { get; } |
Visual Basic (Declaration) |
---|
<BindableAttribute(False)> _ <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> _ <DefaultValueAttribute(Nothing)> _ <BrowsableAttribute(False)> _ Public Overridable ReadOnly Property SelectedItems As C1ComboBoxItem() Get |
Examples
Copy CodeC#
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; |