MatrixLayer::Delete

Description

Delete a number of MatrixObjects from the matrix layer.

Syntax

BOOL Delete( int nPos, uint nNumObjs = 1 )

Parameters

nPos
[input] position for first matrix object to delete
nNumObjs
[input] number of matrix objects to delete. default is 1.

Return

TRUE on success and FALSE on failure.

Examples

EX1

//Delete a MatrixObject from the matrix layer. 
void MatrixLayer_Delete_Ex1()
{
    MatrixPage mp = Project.MatrixPages(0);
    if(!mp)
        return;
    
    MatrixLayer ml(mp.GetName());
    if( ml.Delete(1) )
        printf("Success to delete matrix object!");
    else
        printf("Fail to delete specified matrix object!");
}

Remark

See Also

MatrixLayer::Insert

Header to Include

origin.h