←Select platform

AddRange Method

Summary

Adds multiple items to the end of the collection.

Syntax
C#
VB
C++
public virtual void AddRange( 
   IEnumerable<T> items 
) 
Public Overridable Sub AddRange( 
   ByVal items As IEnumerable(Of T) 
) 
public:  
   virtual void AddRange( 
      IEnumerable<T>^ items 
   ) 

Parameters

items

The IEnumerable<T> of objects to insert. The objects can be null for reference types.

Remarks

LeadCollection<T> accepts null as a valid value for reference types and allows duplicate items.

This method is essentially InsertRange with the index parameter set to Count.

This method raises the CollectionChanged event with the Add action.

Requirements
Target Platforms
Help Version 21.0.2021.3.5
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly