System.Windows.Forms.ListView.ListViewItemCollection.AddRange C# (CSharp) Method

AddRange() public method

public AddRange ( System.Windows.Forms.ListViewItem items ) : void
items System.Windows.Forms.ListViewItem
return void
			public void AddRange (ListViewItem [] items)
			{
				if (items == null)
					throw new ArgumentNullException ("Argument cannot be null!", "items");
				if (owner != null && owner.VirtualMode)
					throw new InvalidOperationException ();

				owner.BeginUpdate ();
				
				foreach (ListViewItem item in items) {
					AddItem (item);

					//UIA Framework event: Item Added
					OnUIACollectionChangedEvent (new CollectionChangeEventArgs (CollectionChangeAction.Add, item));
				}

				owner.EndUpdate ();
				
				CollectionChanged (true);
			}

Same methods

ListView.ListViewItemCollection::AddRange ( ListViewItemCollection items ) : void