DeleteCol
Delete a column in the worksheet
BOOL DeleteCol( int nCol, DWORD dwCtrls = 0 )
TRUE on Success, otherwise FALSE
EX1
//Delete the first column in the worksheet. bool Worksheet_DeleteCol_Ex1() { WorksheetPage wp = Project.WorksheetPages(0); if( wp ) { Worksheet wks(wp.GetName()); if( wks ) return wks.DeleteCol(0); // Delete first column } return false; }
The dwCtrls parameter uses the following WKSDELETECOL enumerations:
Worksheet::AddCol, Worksheet::InsertCol, Worksheet::DeleteRange, Worksheet::DeleteRow, Worksheet::DeleteRows
origin.h