MatrixObject::GetNumCols

Description

Get the number of columns in a matrix

Syntax

int GetNumCols( )

Parameters

Return

Return the number of columns in the matrix

Examples

EX1

// Report the number of columns in a matrix
// Matrix should be the active window
void MatrixObject_GetNumCols_Ex1()
{
    MatrixLayer mlay = Project.ActiveLayer();
    if( mlay )
    {
        MatrixObject mobj (mlay, 0);
        printf("the number of columns in the selected matrix are %d", mobj.GetNumCols());
    }
    else
        printf("Matrix is not the active window\n");
}

Remark

See Also

MatrixObject::GetNumRows

header to Include

origin.h