2.2.4.2.6 AxisObject::SetPosition

Description

to set the position of axis object

Syntax

double SetPosition( int nType, double rPos, BOOL bConvertOnly = FALSE )

Parameters

nType
[input]Position type
rPos
[input]Position value
bConvertOnly
[input]if TRUE then only convert (nType, rPos) into absolute postion value, otherwise AxisObject will be modified.

Return

Absolute position value

Examples

//Set Y axis Object's absolute position value.
void AxisObject_SetPosition_Ex1()
{
    GraphLayer gl = Project.ActiveLayer();    
 
    AxisObject aoY; //Declare AxisObject
    aoY = gl.YAxis.AxisObjects(AXISOBJPOS_AXIS_FIRST);
 
    double y;
    y = aoY.SetPosition(AXIS_POS_REAL, 2.5);
    out_double("Y axis's absolute position value is:", y);    
}

Remark

See Also

GetPosition

Header to Included

origin.h