ZennoLab Assemblies Documentation
ToTable Method
Example 

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: System.String

The splitter of the colums in String object.

Type: System.String

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

Type: IZennoPosterProjectModel

The project object in which need store the data.

Type: IZennoTable

The table object in which need store the data.

Converts all items in specified string to the table 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.

colSplitter

Type: System.String

The splitter of the colums in String object.

colSplitterType

Type: System.String

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

project

Type: IZennoPosterProjectModel

The project object in which need store the data.

table

Type: IZennoTable

The table object in which need store the data.

Example
The following example shows call the ToTable method.
// performs convert string data to table data by specific row and column splitters
Macros.TextProcessing.ToTable("1 2 3\r\n4 5 6\r\n7 8 9", "\r\n", "Text", " ", "Text", project, project.Tables["Table1"]);
// performs convert string data to table data by specific row and column splitters
Macros::TextProcessing::ToTable("1 2 3\r\n4 5 6\r\n7 8 9", "\r\n", "Text", " ", "Text", $project, $project->Tables->get_Item("Table1"));
Requirements

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

See Also

Reference

TextProcessing Class
TextProcessing Members
ToList Method

Send Feedback