【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.4.12.10 Datasheet::GetNumCols
Contents
Description
Get the number of columns in a Datasheet or Matrix.
Syntax
int GetNumCols( )
Parameters
Return
Returns the number of columns in the Datasheet including MatrixLayers and Worksheets.
Examples
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); }
Remark
Get the number of columns in a Datasheet including MatrixLayers and Worksheets.
See Also
Datasheet::GetNumRows, Datasheet::SetNumRows
Header to Include
origin.h