Add GraphPageBase as a GraphObject to Graph/Worksheet/Matrix.
GraphObject InsertGraph( GraphPageBase & gp, LPCSTR lpcszName = NULL, DWORD dwCntrl = 0 )
GraphObject inserted from the GraphPageBase
EX1
void Layer_InsertGraph_ex1() { // Create a layer object and attach it to currently active layer Layer ly = Project.ActiveLayer(); if( !ly.IsValid() ) return; GraphPage page; page.Create("Origin"); GraphObject go = ly.InsertGraph(page, "name", 0); if( go.IsValid() ) { out_str( "GraphObject is valid" ); } else { out_str( "GraphObject is not valid" ); } }
Layer::InsertWks
origin.h