2.2.4.1.1 Axis::Axis

Description

Default constructor which constructs an unattached Axis.


Copy constructor which constructs an Axis object from an existing Axis.

Syntax

Axis( )
Axis( const Axis & axis )

Parameters

axis

Return

Examples

EX1

void Axis_ex1()
{
    GraphLayer gl = Project.ActiveLayer();    
 
    if ( gl )
    {
    	const bool bShow = true;
     	Axis x; // constructs an unattached Axis;
    	x= gl.XAxis;
 
    	x.AxisObjects(AXISOBJPOS_AXIS_SECOND).TopTicks.Show.nVal = bShow;
    	x.AxisObjects(AXISOBJPOS_LABEL_SECOND).TopLabels.Show.nVal = bShow;
 
    	gl.GetPage().Refresh(TRUE);
    }
}

EX2

void Axis_ex2()
{
	GraphLayer gl = Project.ActiveLayer();    
 
    if ( gl )
    {
    	const bool bShow = true;
     	Axis x(gl.XAxis); //Copy constructor which constructs an Axis object from an existing Axis
 
    	x.AxisObjects(AXISOBJPOS_AXIS_SECOND).TopTicks.Show.nVal = bShow;
    	x.AxisObjects(AXISOBJPOS_LABEL_SECOND).TopLabels.Show.nVal = bShow;
 
    	gl.GetPage().Refresh(TRUE);
    }
}

Remark

See Also

AxisObjects

Header to Include

origin.h