2.2.4.27.17 MatrixLayer::SetActive

Description

Set the layer's active MatrixObject by index.

Syntax

BOOL SetActive( int nIndex )

Parameters

nIndex
[input] index of MatrixObject to activate.

Return

If successful then TRUE else FALSE.

Examples

EX1

//Set the layer's active MatrixObject by index. 
void MatrixLayer_SetActive_Ex1()
{
    MatrixPage mp = Project.MatrixPages(0);
    if(!mp)
        return;
    
    MatrixLayer ml(mp.GetName());
    if(ml.SetActive(0))
        printf("success to active it");
    else
        printf("fail to active it");
}

Remark

See Also

MatrixLayer::GetActive

Header to Include

origin.h