2.2.4.18.5 GraphObject::GraphObject

Description

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.

Syntax

GraphObject( )


GraphObject( GraphObject & goOriginal )

Parameters

goOriginal

Return

Examples

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);
}

Remark

See Also

Header to Include

origin.h