2.2.4.27.6 MatrixLayer::GetActive

Description

Get the index of the layer's active MatrixObject.

Syntax

int GetActive( )

Parameters

Return

A zero based index.

Examples

EX1

//Get the index of the layer's active MatrixObject. 
void MatrixLayer_GetActive_Ex1()
{
    MatrixPage mp = Project.MatrixPages(0);
    if(!mp)
        return;
    
    MatrixLayer ml(mp.GetName());
    int n = ml.GetActive();
    printf("The index of the layer's active MatrixObject is %d\n",n);
}

Remark

See Also

MatrixLayer::SetActive

Header to Include

origin.h