ZennoLab Assemblies Documentation
Lists Property
See Also  Example Send Feedback
ZennoLab.InterfacesLibrary Assembly > ZennoLab.InterfacesLibrary.ProjectModel Namespace > IZennoPosterProjectModel Interface : Lists Property

Glossary Item Box

Get a collection of lists that can be accessed name.

Syntax

C# 
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.
C#Copy Code
// 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;
PHPCopy Code
// 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: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven

See Also

© 2013 All Rights Reserved.