Export (0) Print
Expand All

ListView.ColumnHeaderCollection.Remove Method

Removes the specified column header from the collection.

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

public virtual void Remove(
	ColumnHeader column
)

Parameters

column
Type: System.Windows.Forms.ColumnHeader

A ColumnHeader representing the column header to remove from the collection.

When you remove a column header from the collection, the indexes change for subsequent column headers in the collection. All information about the removed column header is deleted. You can use this method to remove a specific column header from the collection by specifying the actual ColumnHeader to remove. To specify the index of the column header to remove instead of the column header itself, use the RemoveAt method. To remove all column headers from the collection, use the Clear method.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft