ListView.ColumnHeaderCollection.AddRange(ColumnHeader[]) Method

Definition

Adds an array of column headers to the collection.

C#
public virtual void AddRange(System.Windows.Forms.ColumnHeader[] values);
C#
public virtual void AddRange(params System.Windows.Forms.ColumnHeader[] values);

Parameters

values
ColumnHeader[]

An array of ColumnHeader objects to add to the collection.

Remarks

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.

Applies to

Producto Versiones
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also