ZennoLab Assemblies Documentation
ToList Method
Example 
ZennoLab.Macros Namespace > TextProcessing Class : ToList Method

Type: System.String

The source string.

Type: System.String

The splitter of the rows in String object.

Type: System.String

The split type of the rows in String object. It can have the following values: Text or Regex.

Type: IZennoPosterProjectModel

The project object in which need store the data.

Type: IZennoList

The list object in which need store the data.

Converts all items in specified string to the list of the project model.
Syntax

Parameters

sourceString

Type: System.String

The source string.

rowSplitter

Type: System.String

The splitter of the rows in String object.

rowSplitterType

Type: System.String

The split type of the rows in String object. It can have the following values: Text or Regex.

project

Type: IZennoPosterProjectModel

The project object in which need store the data.

list

Type: IZennoList

The list object in which need store the data.

Example
The following example shows call the ToList method.
// performs convert string data to list data by specific row splitter
Macros.TextProcessing.ToList("1 2 3 4 5 6 7 8 9 10", " ", "Text", project, project.Lists["List1"]);
// performs convert string data to list data by specific row splitter
Macros::TextProcessing::ToList("1 2 3 4 5 6 7 8 9 10", " ", "Text", $project, $project->Lists->get_Item("List1"));
Requirements

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

See Also

Reference

TextProcessing Class
TextProcessing Members
ToTable Method