AutoSizeRow
Autosizing height of worksheet row, both for data rows and label rows
BOOL AutoSizeRow( int nRow = RCLT_COMMENT, int nLabel = 1, BOOL bUndo = false, DWORD dwCntrl = AS_NOWIDTH | AS_INVALIDATE )
TRUE on success, FALSE on failure.
EX1
// Before run the function, Firstly hide each label type. // This function will show the comment label. void Worksheet_AutoSizeRow_Ex1() { Worksheet wks = Project.ActiveLayer(); if ( wks ) { if( !wks.AutoSizeRow(RCLT_COMMENT, 1) ) printf("Fail to autosize the height of worksheet comment!"); } }
OriginObject::AutoSize
origin.h