Layer::GetPage

Description

Get the parent Page object that contains the layer.

Syntax

Page GetPage( )

Parameters

Return

The parent Page object

Examples

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" );
}

Remark

See Also

header to Include

origin.h