This documentation is archived and is not being maintained.

ListView.ColumnHeaderCollection.Clear Method

Removes all column headers from the collection.

[Visual Basic]
Public Overridable Sub Clear() Implements IList.Clear
[C#]
public virtual void Clear();
[C++]
public: virtual void Clear();
[JScript]
public function Clear();

Implements

IList.Clear

Remarks

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

Requirements

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.ColumnHeaderCollection Class | ListView.ColumnHeaderCollection Members | System.Windows.Forms Namespace | Remove | RemoveAt

Show: