Clear Method

ListViewItem.ListViewSubItemCollection.Clear Method ()

 

Removes all subitems and the parent ListViewItem from the collection.

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

public void Clear()

Implements

IList.Clear()

When you remove subitems from the collection, all information about the deleted subitems is lost. To remove a single subitem from the collection use the Remove or RemoveAt method.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft