AddRange Method (ListView.ListViewItemCollection)
Collapse the table of content
Expand the table of content

ListView::ListViewItemCollection::AddRange Method (ListView::ListViewItemCollection^)


Adds a collection of items to the collection.

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

void AddRange(
	ListView::ListViewItemCollection^ items

Exception Condition

items is null.


The containing ListView is in virtual mode.

If the containing ListView is sorted, the AddRange method will add the items in sorted order; otherwise, it will add them to the end of the collection.

.NET Framework
Available since 2.0
Return to top
© 2016 Microsoft