ZennoLab Assemblies Documentation
ILists Interface
Members  Example 
Represents a collection of lists that can be accessed by namespace and name.
Object Model
ILists Interface
Syntax
public interface ILists 
Remarks
This interface can be used in action OwnCode (C# or PHP) of ProjectMaker.
Example
The following example uses property Lists of "project" for adding a new items into list.
// get list
IList<string> list = project.Lists["MyList"];
 
// show count of list
System.Windows.Forms.MessageBox.Show(String.Format("Now count of the list is {0}", list.Count), "Count of list");
 
// add a new items
list.Add("new item 1");
list.Add("new item 2");
list.Add("new item 3");
 
// show count of list
System.Windows.Forms.MessageBox.Show(String.Format("Now count of the list is {0}", list.Count), "Count of list");
// get list
$list = $project->Lists->get_Item("MyList");
 
// show count of list
System\Windows\Forms\MessageBox::Show(String::Format("Now count of the list is {0}", $list->Count), "Count of list");
 
// add a new items
$list->Add("new item 1");
$list->Add("new item 2");
$list->Add("new item 3");
 
// show count of list
System\Windows\Forms\MessageBox::Show(String::Format("Now count of the list is {0}", $list->Count), "Count of list");
Requirements

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

See Also

Reference

ILists Members
ZennoLab.InterfacesLibrary.ProjectModel.Collections Namespace
IZennoPosterProjectModel.Lists Property

Send Feedback