ComponentOne ToolTip for ASP.NET WebForms
C1.Web.Wijmo.Controls.45 Assembly / C1.Web.Wijmo.Controls.C1ComboBox Namespace / C1ComboBoxItemCollection Class / Clear Method
Example

In This Topic
    Clear Method (C1ComboBoxItemCollection)
    In This Topic
    Removes all C1ComboBoxItems from the collection.
    Syntax
    'Declaration
     
    Public Shadows Sub Clear() 
    public new void Clear()
    Example
    C1ComboBox c = new C1ComboBox();
    c.Items.Add(new C1ComboBoxItem("test1"));
    c.Items.Add(new C1ComboBoxItem("test2"));
    // items are clear.
    c.Items.Clear();
    See Also