ZennoLab Assemblies Documentation
AddRange(IZennoList) Method
Example 

Type: ZennoLab.IntefacesLibrary.ProjectModel.IZennoList

The collection whose elements should be added to the end of the IZennoList. The collection itself cannot be null, but it can contain elements that are null.

Adds the elements from IZennoList collection of the specified collection to the end of IZennoList.
Syntax
void AddRange( 
   IZennoList list
)

Parameters

list

Type: ZennoLab.IntefacesLibrary.ProjectModel.IZennoList

The collection whose elements should be added to the end of the IZennoList. The collection itself cannot be null, but it can contain elements that are null.

Remarks
The order of the elements in the collection is preserved in the IZennoList.
Example
The following code example demonstrates the AddRange method.
// add all items from project with name "List 2"
// to the project list with name "List 1"
project.Lists["List 1"].AddRange(project.Lists["List 2"]);
// add all items from project with name "List 2"
// to the project list with name "List 1"
$project->Lists->get_Item("List 1")->AddRange($project->Lists->get_Item("List 2"));
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

IZennoList Interface
IZennoList Members
Overload List

Send Feedback