Inserts a C1ComboBoxItem at the specified position in the collection.
Namespace:
C1.Web.UI.Controls.C1ComboBoxAssembly: C1.Web.UI.Controls.3 (in C1.Web.UI.Controls.3.dll)
Syntax
C# |
---|
public void Insert( int index, C1ComboBoxItem child ) |
Visual Basic (Declaration) |
---|
Public Sub Insert ( _ index As Integer, _ child As C1ComboBoxItem _ ) |
Parameters
- index
- Type: System..::..Int32
Position where the C1ComboBoxItem will be added. The value should be greater than or equal to 0.
- child
- Type: C1.Web.UI.Controls.C1ComboBox..::..C1ComboBoxItem
C1ComboBoxItem instance.
Examples
Copy CodeC#
C1ComboBox c = new C1ComboBox(); c.Items.Add(new C1ComboBoxItem("test1")); c.Items.Insert(0,new C1ComboBoxItem("test2")); |