GraphPage
The GraphPage class provides methods and properties common to all internal Origin graph pages (windows).
An Origin C GraphPage object is a wrapper object that is a reference to an internal Origin graph page object. Origin C wrapper objects do not actually exist in Origin and merely refer to the internal Origin object. Consequently, multiple Origin C wrapper objects can refer to the same internal Origin object. The GraphPage class is derived from the Page, PageBase, and OriginObject classes from which it inherits methods and properties.
The Origin C Project class (Project.h) contains a collection of all GraphPage objects named GraphPages in the open project file. Once accessed, a GraphPage object can be used to locate and access layers within the Origin graph page (i.e. use the Layers collection of the Page class or use the GraphLayers collection of the GraphPage class) which can in turn be used to access such things as DataPlots or GraphicObjects in the layer.
EX1
void GraphPage_ex1() { GraphPage gp; gp.Create("origin"); if( gp.IsValid() ) { GraphPage gp2(gp.GetName()); if( gp2.IsValid() ) printf("gp and gp2 are both attached to '%s'\n", gp2.GetName()); } }
origin.h