StyleHolder

 

Contents

Name

StyleHolder

Remark

The StyleHolder class provides methods and properties common to all data plot style holders. An internal Origin data plot style holder is an object used to store plot type information for a data plot contained in an Origin graph layer.

An Origin C StyleHolder is a wrapper object that is a reference to an internal Origin StyleHolder 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 StyleHolder class is derived from the GraphObject and OriginObject classes from which it inherits methods and properties.

Hierarchy

Examples

EX1

void StyleHolder_ex1()
{
    GraphLayer gl = Project.ActiveLayer();
    if(gl)                                        // If layer is valid...
    {
        StyleHolder sh = gl.StyleHolders(0);      // Get first style holder in layer 
        out_int("Plot type is ", sh.GetPlotId()); // Get plot id 
    }
}

header to Include

origin.h

Reference

Members

Name Brief Example
GetDescription get a text string to describe a StyleHolder. Examples
GetPlotDesignations get plot designatioin text. Examples
GetPlotId get the Origin internal plot id. Examples
StyleHolder Copy Constructor. Examples