Removes all C1ComboBoxItems from the collection.

Namespace:  C1.Web.UI.Controls.C1ComboBox
Assembly:  C1.Web.UI.Controls.3 (in C1.Web.UI.Controls.3.dll)

Syntax

C#
public void Clear()
Visual Basic (Declaration)
Public Sub Clear

Examples

Copy CodeC#
C1ComboBox c = new C1ComboBox();
c.Items.Add(new C1ComboBoxItem("test1"));
c.Items.Add(new C1ComboBoxItem("test2"));
// items are clear.
c.Items.Clear();

See Also