ZennoLab Assemblies Documentation
Lists Property
Example 
Get a collection of lists that can be accessed name.
Syntax
ILists Lists {get;}

Property Value

Type: ZennoLab.InterfacesLibrary.ProjectModel.Collections.ILists

A collection of lists.

Example
The following example uses Lists property of "project" for getting list by name.
// get list by name "MyList"
var list = project.Lists["MyList"];
 
// add a new item to list
list.Add("new_list_item");
 
// get list by name "AnotherList" and get count of item
int count = project.Lists["AnotherList"].Count;
// get list by name "MyList"
$list = $project->Lists->get_Item("MyList");
 
// add a new item to list
$list->Add("new_list_item");
 
// get list by name "AnotherList" and get count of item
$count = $project->Lists->get_Item("AnotherList")->Count;
Requirements

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

See Also

Reference

IZennoPosterProjectModel Interface
IZennoPosterProjectModel Members
ILists Interface

Send Feedback