MatrixObject::SetColumnWidth

Description

Sets the width of a matrix column.

Syntax

BOOL SetColumnWidth( double nColWidth )

Parameters

nColWidth
[input] User defined width of the column

Return

TRUE if successful; FALSE otherwise

Examples

EX1

// Double the existing width of matrix columns
// Matrix must exist in project
void MatrixObject_SetColumnWidth_Ex1()
{
        MatrixObject    moMy("MBook1");

    if( moMy )
    { 
        double iWidth = moMy.GetColumnWidth();
        moMy.SetColumnWidth(iWidth * 2);
        printf("the column width is %f", moMy.GetColumnWidth());   
    }
}

Remark

See Also

MatrixObject::GetColumnWidth

header to Include

origin.h