| ZennoLab.InterfacesLibrary Assembly > ZennoLab.InterfacesLibrary.ProjectModel Namespace > IZennoTable Interface : ColCount Property |
// get table by name "MyTable" IZennoTable table = project.Tables["MyTable"]; // get columns count int colCount = table.ColCount; // set rows separator table.ColSeparator = ":"; // add row to table table.AddRow("one:two:three:four"); // get columns count if (table.ColCount != colCount) return "Columns count was changed"; return "Columns count wasn't changed";
// get table by name "MyTable" $table = $project->Tables->get_Item("MyTable"); // get columns count $colCount = $table->ColCount; // set rows separator $table->ColSeparator = ":"; // add row $table->AddRow("one:two:three:four"); // get columns count if ($table->ColCount != $colCount) return "Columns count was changed"; return "Columns count wasn't changed";
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven