Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

public:
void AddRange(
	ListView::ListViewItemCollection^ items
)

ExceptionCondition
ArgumentNullException

items is nullptr.

InvalidOperationException

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft