Column::SetDigitMode

Description

Set the display mode used for numbers in a column.

Syntax

BOOL SetDigitMode( int iDigitMode )

Parameters

iDigitMode
[input] The ColDigitMode, can be
enum {
DIGITS_FREE_FORM,
DIGITS_DECIMAL,
DIGITS_SIGNIFICANT}

Return

TRUE, set the digitmode successfully, FALSE, unsuccessful.

Examples

EX1

// Worksheet with at least one column must exist in the project
void    Column_SetDigitMode_Ex1()
{
    WorksheetPage wp = Project.WorksheetPages(0);
    if(!wp)
        return;
    
    Worksheet wks(wp.GetName());
    BOOL b = wks.Columns(0).SetDigitMode(DIGITS_FREE_FORM);
}

Remark

Set the display mode used for numbers in a column.

See Also

Column::GetDigitMode, Column::GetDigits, Column::SetDigits

header to Include

origin.h