ZennoLab Assemblies Documentation
AddRow(String) Method
See Also  Example Send Feedback
ZennoLab.InterfacesLibrary Assembly > ZennoLab.InterfacesLibrary.ProjectModel Namespace > IZennoTable Interface > AddRow Method : AddRow(String) Method
row

Type: System.String

A string of items created through a specified separator. If this string has a special format, for example file of Excel, the values ​should be separated by semicolons.

Glossary Item Box

Adds a row to the end of the object of IZennoTable interface.

Syntax

C# 
void AddRow( 
   string row
)

Parameters

row

Type: System.String

A string of items created through a specified separator. If this string has a special format, for example file of Excel, the values ​should be separated by semicolons.

Remarks

If rows separator wasn't set then will be using separator by default.

Example

The following code using IZennoTable Interface for adding row. Before call of AddRow method, set rows separator via RowSeparator property.
C#Copy Code
// get table by name "MyTable"
IZennoTable table = project.Tables["MyTable"];
 
// set row separator
table.ColSeparator = ":";
 
// add row 
table.AddRow("one:two:three:four");
PHPCopy Code
// get table by name "MyTable"
$table = $project->Tables->get_Item("MyTable");
 
// set row separator
$table->ColSeparator = ":";
 
// add row 
$table->AddRow("one:two:three:four");

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.