Cols
Grid
public
int Cols
EX1
//Output the Grid's Cols and Rows, including label rows. void Grid_Cols_ex1() { Worksheet wks = Project.ActiveLayer(); if(wks) { Grid gg; gg.Attach(wks); if(gg) { printf("Rows:%d, Cols:%d\n", gg.Rows, gg.Cols); } } }
The total number of columns.
origin.h
Grid::Rows