2.2.4.38.69 Project::UndoBlockId

Description

Gets current undo block identifier (ID).

Syntax

int UndoBlockId( )

Parameters

Return

Current undo block ID.

Examples

Ex1

///Create two graphs before running this example
void Project_UndoBlockId_ex1()
{

    GraphPage pageSrc("Graph1");
    GraphPage pageDst1("Graph2"); 
    Tree tree;
    tree = pageSrc.GetFormat();
    if( tree )
    {
            {
            UndoBlock block;
            BOOL bb = pageDst1.ApplyFormat(tree,true,false,true);
            }
            int nRet = Project.UndoBlockId();
            printf("Current Undo Block Id is %d",nRet);
            Project.Undo();     
    }
}

Remark

See Also

Header to Include

origin.h