GraphObjectBase
The GraphObjectBase class provides methods and properties common to all Origin graph objects.
Origin graph objects include such things as text annotations, graphic annotations (e.g. rectangles, arrows, line objects, etc.), data plot style holders, and region of interest objects.
Origin graph objects are generally contained by layers on an Origin page thus the Origin C GraphLayer class contains a collection of GraphObjects.
An Origin C GraphObject is a wrapper object that is a reference to an internal Origin graph 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 GraphObjectBase class is derived from the OriginObject class from which it inherits methods and properties.
EX1
void GraphObjectBase_ex1() { GraphPage gp; gp.Create("origin"); GraphLayer gl(gp.GetName(), 0); if(gl) // If valid graph layer... { GraphObject go; // Declare GraphObject go = gl.GraphObjects("YL"); // Attach go to "YL" which is the the left Y-axis title out_str(go.Text); } }
origin.h