GetSelectedColumns
Fill a vector with column indexes where column is completely or partially selected
BOOL GetSelectedColumns( vector<int> & v )
TRUE for success; otherwise FALSE
EX1
//Output the columns which have a selection. int Worksheet_GetSelectedColumns_Ex1() { WorksheetPage wksPage = Project.WorksheetPages(0); if(!wksPage) return -1; Worksheet wks(wksPage.GetName()); vector<int> v; BOOL bOK = wks.GetSelectedColumns(v); if(bOK) { for( int ii = 0 ; ii < v.GetSize() ; ii++ ) printf("Column %u has a selection\n", v[ii] + 1); return (int) v.GetSize(); } else return -1; }
Retrieves the 0-offset indices of the selected columns (selected all in in part) in the worksheet.
Worksheet::GetSelection, Worksheet::GetSelectedRange
origin.h