ZennoLab Assemblies Documentation
GetRow Method
See Also  Example Send Feedback
ZennoLab.InterfacesLibrary Assembly > ZennoLab.InterfacesLibrary.ProjectModel Namespace > IZennoTable Interface : GetRow Method
row
Type: System.Int32

The zero-based index of the row.

Glossary Item Box

Returns the value of the row at the specified index from IZennoTable object as System.Collections.Generic.IEnumerable<String> object.

Syntax

C# 
IEnumerable<string> GetRow( 
   int row
)

Parameters

row
Type: System.Int32

The zero-based index of the row.

Return Value

Type: System.Collections.Generic.IEnumerable <String>

A collection that contains the strings from the specified row.

Example

The following code using IZennoTable Interface for getting row.
C#Copy Code
// get table by name "MyTable"
IZennoTable table = project.Tables["MyTable"];
 
// get row
string row = String.Join(":", table.GetRow(0));
 
// show message
System.Windows.Forms.MessageBox.Show(row, "Row from table");
PHPCopy Code
// get table by name "MyTable"
$table = $project->Tables["MyTable"];
 
// get row
$row = String::Join(":", $table->GetRow(0));
 
// show message
System\Windows\Forms\MessageBox::Show($row, "Row from table");

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.