GetNumCols
Get the number of columns in a Datasheet or Matrix.
int GetNumCols( )
Returns the number of columns in the Datasheet including MatrixLayers and Worksheets.
EX1
//Get the number of columns in a Worksheet or Matrix. void Datasheet_GetNumCols_Ex1() { Layer lay = Project.ActiveLayer(); if (!lay) return; Datasheet ds(lay); int nCols = ds.GetNumCols(); printf("The worksheet has %d columns",nCols); }
Get the number of columns in a Datasheet including MatrixLayers and Worksheets.
Datasheet::GetNumRows, Datasheet::SetNumRows
origin.h