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 _
public virtual void AddRange(
 ColumnHeader[] values
public: virtual void AddRange(
 ColumnHeader* values[]
public function AddRange(
   values : ColumnHeader[]


An array of ColumnHeader objects to add to the collection.


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.


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

© 2015 Microsoft