CopyDataFormat
Copy column format from source.
void CopyDataFormat( Column & colSrc, BOOL bForceSubformatUpdate = TRUE, BOOL bUndo = FALSE )
None
EX1
void Column_CopyDataFormat_ex1() { //set all the columns the same format as the first column Worksheet wks = Project.ActiveLayer(); if ( wks ) { Column colSrc(wks, 0); int nNumCols = wks.GetNumCols(); for ( int iCol = 0; iCol < nNumCols; iCol++ ) { Column colDst(wks, iCol); colDst.CopyDataFormat(colSrc); } } }
origin.h