Get the creation index from a layer. The creation index will keep unchange for a page.
int GetCreationIndex( )
integer equal or greater than 0 if success, otherwise a negative integer
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() ); }
origin.h