ListView.ColumnHeaderCollection.AddRange Method (ColumnHeader[])

 

Adds an array of column headers to the collection.

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

public virtual void AddRange(
	ColumnHeader[] values
)

Parameters

values
Type: System.Windows.Forms.ColumnHeader[]

An array of ColumnHeader objects to add to the collection.

You can use this method to reuse the column headers used in a different ListView control. If you want to add a single ColumnHeader, use the Add method. You can also use the Insert method if you want to add a single ColumnHeader at a specific position in the collection.

.NET Framework
Available since 1.1
Return to top
Show: