SetColDesignations
Used to apply designation pattern to an entire worksheet
BOOL SetColDesignations( LPCSTR lpcszDesignations, BOOL bRepeat = TRUE, int nC1 = 0, int nC2 = -1, DWORD dwDumpErr = 0 )
TRUE for success. Otherwise FALSE;
EX1
// The following code will set column designations in worksheet // in this pattern : X, Y, Label, Y, Label // The pattern will repeat if worksheet contains more than 5 columns void Worksheet_SetColDesignations_Ex1() { Worksheet wks; wks.Create("Origin", CREATE_VISIBLE); for( int ii = 1 ; ii <= 8 ; ii++ ) wks.AddCol(); if( wks.SetColDesignations("XYLYL") ) printf("Success to set designation pattern in worksheet!"); else printf("Fail to set designation pattern!"); }
Worksheet::GetColDesignations, Column::GetType, Column::SetType
origin.h