ZennoLab.InterfacesLibrary Assembly > ZennoLab.InterfacesLibrary.ProjectModel.Collections Namespace : ILists Interface |
public interface ILists
// 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");
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.