ZennoLab Assemblies Documentation
RowCount Property
See Also  Example Send Feedback
ZennoLab.InterfacesLibrary Assembly > ZennoLab.InterfacesLibrary.ProjectModel Namespace > IZennoTable Interface : RowCount Property

Glossary Item Box

Gets the number of rows actually contained in the table.

Syntax

C# 
int RowCount {get;}

Property Value

Type:System.Int32
The number of rows actually contained in the table.

Example

The following code example shows the value of the RowCount property at various points in the life of a table.
C#Copy Code
// get table by name "MyTable"
IZennoTable table = project.Tables["MyTable"];
 
// get rows count
int rowsCount = table.RowCount;
 
// add row
table.AddRow("one:two:three:four");
 
// get rows count
if (table.RowCount != rowsCount) return "Rows count was changed";
return "Rows count wasn't changed";
PHPCopy Code
// get table by name "MyTable"
IZennoTable table = project.Tables->get_Item("MyTable");
 
// get rows count
$rowsCount = $table->RowCount;
 
// add row
$table->AddRow("one:two:three:four");
 
// get rows count
if ($table->RowCount != $rowsCount) return "Rows count was changed";
return "Rows count wasn't changed";

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.