MatrixLayer::SetNumCols

Description

Set the number of columns in a MatixLayer.

Syntax

BOOL SetNumCols( int nCols, BOOL bUndo = false )

Parameters

nCols
[input] Input number of columns to set
bUndo
[input] true to support undo mechanism

Return

Returns TRUE on successful exit and FALSE on failure.

Examples

EX1

//Set the number of columns in a MatixLayer. 
void MatrixLayer_SetNumCols_Ex1()
{
    MatrixPage mp = Project.MatrixPages(0);
    if(!mp)
        return;
    
    MatrixLayer ml(mp.GetName());
    if( ml.SetNumCols(50) )
        printf("Success to set the number of columns");
    else
        printf("Fail to set the number of columns");
}

Remark

Set the number of columns in a MatrixLayer.

See Also

Datasheet::GetNumRows, Datasheet::SetNumRows, Datasheet::GetNumCols

header to Include

origin.h