【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.4.24.10 Layer::GetPage
Contents
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