Column::SetUnits

Description

Set the units in a column label.

Syntax

BOOL SetUnits( LPCSTR lpcszUnits )

Parameters

lpcszUnits
[input] Pointer to the units to set.

Return

TRUE if OK, otherwise FALSE.

Examples

EX1

// Create a worksheet and add Units
void Column_SetUnits_Ex1()
{
    Worksheet    wks;
    wks.Create("Origin", CREATE_VISIBLE);
    wks.Columns(0).SetUnits("msec");
    wks.Columns(1).SetUnits("ft-lbs");
}

Remark

Set the units in a column label.

See Also

Column::GetUnits, Column::GetExtendedLabel, Column::SetExtendedLabel

header to Include

origin.h