ListBox.ObjectCollection.Clear Method ()

 

Removes all items from the collection.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public virtual void Clear()

Implements

IList.Clear()

When you remove items from the list, all information about the deleted items is lost. To remove a single item from the ListBox, use the Remove or RemoveAt method.

.NET Framework
Available since 1.1
Return to top
Show: