GetSubFormat
Get the SubFormat used by a column.
int GetSubFormat( )
The subformat as an integer enumerated from 0
EX1
// A worksheet with at least one column must exist in the project void Column_GetSubFormat_Ex1() { WorksheetPage wp = Project.WorksheetPages(0); if(!wp) return; Worksheet wks(wp.GetName()); int iSubFormat = wks.Columns(0).GetSubFormat(); printf("SubFormat type number is %u\n", iSubFormat); }
The list of available subformats varies for each column type.
Each Format have some SubFormat, you can choose different Format in the Worksheet Column Properties dialog and see the SubFormat corresponding to that Format at the 'Display' label. The GetSubFormat and SetSubFormat function will return or use the index of the combo box in the label to represent different SubFormat.
Column::SetSubFormat
origin.h