2.2.4.24.6 Layer::GetCreationIndex


Description

Get the creation index from a layer. The creation index will keep unchange for a page.

Syntax

int GetCreationIndex( )

Parameters

Return

integer equal or greater than 0 if success, otherwise a negative integer

Examples

EX1

void Layer_GetCreationIndex_ex1()
{
    // Create a layer object and attach it to currently active layer
    Layer ly = Project.ActiveLayer();
    // If object is valid, Get the CreationIndex and report
    if( ly.IsValid() )
        printf( "Active layer creation index is %d.\n", ly.GetCreationIndex() );
}

Remark

See Also

Header to Included

origin.h