2.2.4.5.33 Column::GetWidth

Description

Get the display width of a column in number of characters. For hidden column, the result is zero.

Syntax

double GetWidth( )

Parameters

Return

The width in characters (approximate), exact only if the font is fixed width.

Examples

EX1

// Assumes a worksheet exists in the project
void    Column_GetWidth_Ex1()
{
    WorksheetPage wp = Project.WorksheetPages(0);
    if(!wp)
        return;
    
    Worksheet wks(wp.GetName());
    out_int("col(1) width=", wks.Columns(0).GetWidth());
}

Remark

Get the display width of a column in number of characters.

See Also

Column::SetWidth

Header to Include

origin.h