Column::GetDigitMode

Description

Gets the display mode used for numbers in a column.

Syntax

int GetDigitMode( )

Parameters

Return

The ColDigitMode for enum {

DIGITS_FREE_FORM,
DIGITS_DECIMAL,
DIGITS_SIGNIFICANT }

Examples

EX1

// Worksheet with at least one column must exist in project
void    Column_GetDigitMode_Ex1()
{
    WorksheetPage wp = Project.WorksheetPages(0);
    if(!wp)
        return;
    
    Worksheet wks(wp.GetName());
    int iDigitMode = wks.Columns(0).GetDigitMode();
    printf("Digit mode of %s is %u\n", wks.Columns(0).GetName(), iDigitMode);
}

Remark

Gets the display mode used for numbers in a column.

See Also

Column::SetDigitMode, Column::GetDigits, Column::SetDigits

header to Include

origin.h