ZennoLab Assemblies Documentation
GetCell(Int32,Int32) Method
Example 

Type : System.Int32

The index of column.

Type : System.Int32

The cell's row, zero-based index.

Gets a value from a cell by column index.
Syntax
string GetCell( 
   int column,
   int row
)

Parameters

column

Type : System.Int32

The index of column.

row

Type : System.Int32

The cell's row, zero-based index.

Return Value

Type: System.String

Value of the requested cell.

Exceptions
ExceptionDescription
IndexOutOfRangeExceptionThe exception that is thrown when an attempt is made to access an element of an array with an index that is outside the bounds of the array.
Example
The following code using IZennoTable Interface for getting cell.
// get table by name "MyTable"
IZennoTable table = project.Tables["MyTable"];
 
// get cell value from column "0" in the zero line
string cell = table.GetCell(0, 0);
// get table by name "MyTable"
$table = $project->Tables->get_Item("MyTable");
 
// get cell value from column "0" in the zero line
$cell = $table->GetCell(0, 0);
Requirements

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

See Also

Reference

IZennoTable Interface
IZennoTable Members
Overload List
GetRow Method
SetCell Method

Send Feedback