GetPage
Get the parent Page object that contains the layer.
Page GetPage( )
The parent Page object
EX1
//Get the graph page's name which contains the active layer. void Layer_GetPage_ex1() { // Create a layer object and attach to the currently active layer Layer ly = Project.ActiveLayer(); if( ly.IsValid() ) { // Get the parent page that contains this layer and report its name Page pg = ly.GetPage(); printf( "Active layer is contained in page: %s\n", pg.GetName() ); } else out_str( "No active layer found" ); }
origin.h