Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
AddRange Method

ListView.ColumnHeaderCollection.AddRange Method

Adds an array of column headers to the collection.

[Visual Basic]
Public Overridable Sub AddRange( _
   ByVal values() As ColumnHeader _
)
[C#]
public virtual void AddRange(
 ColumnHeader[] values
);
[C++]
public: virtual void AddRange(
 ColumnHeader* values[]
);
[JScript]
public function AddRange(
   values : ColumnHeader[]
);

Parameters

values
An array of ColumnHeader objects to add to the collection.

Remarks

This method removes all existing column headers from the collection before inserting new items. 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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

ListView.ColumnHeaderCollection Class | ListView.ColumnHeaderCollection Members | System.Windows.Forms Namespace | Add | Insert | ColumnHeader

Show:
© 2015 Microsoft