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 Sub AddRange (
	items As ListView.ListViewItemCollection
)

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
Return to top
Show: