SetRange
Set the beginning and ending row indices for the specified columns in this Worksheet.
BOOL SetRange( int iR1, int iR2, int iC1 = 0, int iC2 = -1 )
Returns TRUE on success and FALSE on failure.
EX1
// Usage // Worksheet_SetRange_Ex1 1 0;// to clear worksheet // Worksheet_SetRange_Ex1 3 200;// show rows from 3 to 200 void Worksheet_SetRange_Ex1(int nBegin, int nEnd) { Worksheet wks = Project.ActiveLayer(); // convert LabTalk index into C index int nR1 = nBegin - 1; int nR2 = nEnd - 1; if( wks.SetRange(nR1, nR2) ) printf("Success to set range of specified column!"); else printf("Fail to set range of specified column!"); }
Worksheet::GetRange, Worksheet::GetBounds, Worksheet::SetBounds, Worksheet::SetLowerBound, Worksheet::SetUpperBound
origin.h