MatrixLayer::SetCellWidth

Description

Set the matrix cell width

Syntax

BOOL SetCellWidth( double nCellWidth )

Parameters

nCellWidth
[input] The width of the cell

Return

TRUE for success; otherwise FALSE.

Examples

EX1

//Set the matrix cell width to 5.
void MatrixLayer_SetCellWidth_Ex1()
{
    MatrixPage mp = Project.MatrixPages(0);
    if(!mp)
        return;
    
    MatrixLayer ml(mp.GetName());
    if( ml )
    {
        if( ml.SetCellWidth(5) )
            printf("The matrix cell width is %f\n", ml.GetCellWidth());
        else
            printf("Fail to set matrix cell width!");
    }
}

Remark

Set the matrix cell width

See Also

MatrixLayer::GetCellWidth

header to Include

origin.h