Page
Default constructor for a Page object.
Construct a Page object using the name of an existing page.
Construct a Page object using another Page object.
Page( )
Page( LPCSTR lpcszName )
Page( PageBase & page )
EX1
//Default constructor for a Page object int Page_Page_ex1() { Page pg; pg = (Page) Project.Pages(); // Get the project's active page, cast from PageBase to Page if( pg.IsValid() ) printf("Active page %s is of type %d\n", pg.GetName(), pg.GetType()); else printf("Active page is invalid\n"); return 0; }
EX2
// Construct a Page object using the name of an existing page. int Page_Page_ex2(string strName= "Book1") { Page pg(strName); if( pg.IsValid() ) printf("Page %s is of type %d\n", pg.GetName(), pg.GetType()); else printf("Page %s is invalid\n", strName); return 0; }
EX3
//Construct a Page object using another Page object int Page_Page_ex3() { MatrixPage mp; mp.Create("origin"); if( mp.IsValid() ) { Page pg(mp); if( pg.IsValid() ) printf("Page %s is of type %d\n", pg.GetName(), pg.GetType()); else printf("Page is invalid\n"); } return 0; }
Page::Create
origin.h