This documentation is archived and is not being maintained.

ListView.Clear Method

Removes all items and columns from the control.

[Visual Basic]
Public Sub Clear()
public void Clear();
public: void Clear();
public function Clear();


You can use this method to remove all items and columns from the ListView control without having to call the individual Clear methods from the ListView.ColumnHeaderCollection and ListView.ListViewItemCollection classes.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

ListView Class | ListView Members | System.Windows.Forms Namespace | ColumnHeaderCollection.Clear | ListViewItemCollection.Clear