GetBounds
Get the minimum beginning and maximum ending row indices for the specified columns in this Worksheet.
BOOL GetBounds( int & iR1, int iC1, int & iR2, int iC2, BOOL bIncludeMissingValues = TRUE )
Returns TRUE on success and FALSE on failure.
EX1
void Worksheet_GetBounds_Ex1() { Worksheet wks = Project.ActiveLayer(); int nR1, nR2; wks.GetBounds(nR1, 0, nR2, -1); // need to convert to LabTalk indexing by +1 printf("%s[%d:%d]\n", wks.GetPage().GetName(), nR1+1, nR2+1); // show for each column and check consistency foreach(Column cc in wks.Columns) { vector v(cc); printf("Col(%s)[%d:%d]\n",cc.GetName(), v.GetLowerBound()+1, v.GetUpperBound()+1); } }
Worksheet::GetRange, Worksheet::SetBounds, Worksheet::SetLowerBound, Worksheet::SetUpperBound
origin.h