GraphObject
Default constructor which creates a GraphObject which is not attached to an internal graphic object. It should be initialized using "GraphObjects" method of the Layer class because all the GraphObject's are conatined in layers.
Copy Constructor: The new GrpahObject object created is attached to the internal graphic object goOriginal was attached to. If goOriginal was invalid (not attached) so will be the new object.
GraphObject( )
GraphObject( GraphObject & goOriginal )
GraphObject( LPCSTR lpcsz )
EX1
void GraphObject_GraphObject_ex1() { GraphPage gp; gp.Create("origin"); GraphLayer glMyLayer(gp.GetName(), 0); GraphObject goMyObj = glMyLayer.GraphObjects("YL"); out_str(goMyObj.Text); }
EX2
void GraphObject_GraphObject_ex2() { GraphPage gp; gp.Create("origin"); GraphLayer glMyLayer(gp.GetName(), 0); GraphObject goOriginal; goOriginal = glMyLayer.GraphObjects("YL"); GraphObject goNew(goOriginal); out_str(goNew.Text); }
EX3
//new a graph, and run LT script "insertImg2g -dm x:=20 y:=20 type:=IMG xyp:=page" void GraphObject_GraphObject_ex3() { string strLink = "[Graph1]1!cvImg";//the object name with layer range string GraphObject grImg(strLink); string strPath; grImg.GetProp("Path", strPath); out_str(strPath); }
origin.h