ListView.ColumnHeaderCollection.AddRange(ColumnHeader[]) Method

Definition

Adds an array of column headers to the collection.

public:
 virtual void AddRange(cli::array <System::Windows::Forms::ColumnHeader ^> ^ values);
public virtual void AddRange (System.Windows.Forms.ColumnHeader[] values);
abstract member AddRange : System.Windows.Forms.ColumnHeader[] -> unit
override this.AddRange : System.Windows.Forms.ColumnHeader[] -> unit
Public Overridable Sub AddRange (values As ColumnHeader())

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

See also