2.2.4.5.29 Column::GetTextMaxLen

Description

Get the text width of a column.

Syntax

int GetTextMaxLen( )

Parameters

Return

The current Text Width of the column.

Examples

EX1

// Worksheet should exist in project
void Column_GetTextMaxLen_Ex1()
{
    WorksheetPage wp = Project.WorksheetPages(0);
    if(!wp)
        return;
    
    Worksheet wks(wp.GetName());
    foreach(Column col in wks.Columns)
    {
        int iTextMaxLen = col.GetTextMaxLen();
        printf("Column text width is %u\n", iTextMaxLen);
    }
}

Remark

Get the text width of a column - this is the maximum number of characters that can be stored in a column. The default is 25, the maximum is 256.This is more different than the display column width.

See Also

Column::SetTextMaxLen

Header to Include

origin.h