MatrixObject::GetNumRows

Description

Get the number of rows in a matrix

Syntax

int GetNumRows( )

Parameters

Return

Return the number of rows in the matrix

Examples

EX1

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

Remark

See Also

MatrixObject::GetNumCols

header to Include

origin.h