ListView::ListViewItemCollection::AddRange Method (ListView::ListViewItemCollection^)
.NET Framework (current version)
Adds a collection of items to the collection.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- items
-
Type:
System.Windows.Forms::ListView::ListViewItemCollection^
The ListView::ListViewItemCollection to add to the collection.
| Exception | Condition |
|---|---|
| ArgumentNullException | items is null. |
| 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
Available since 2.0
Available since 2.0
Show: