AxisObject::GetPosition

Description

get the position of the axis object

Syntax

double GetPosition( int * pnType = NULL, double * prPos = NULL, int * pnPixel = NULL )

Parameters

pnType
[output]Position type
prPos
[output]Position value
pnPixel
[input]Logical Position

Return

Absolute position value

Examples

//Get Y axis Object's absolute position value.
void AxisObject_GetPosition_Ex1()
{
    GraphLayer gl = Project.ActiveLayer();    
    
    AxisObject aoY; //Declare AxisObject
    aoY = gl.YAxis.AxisObjects(AXISOBJPOS_AXIS_FIRST);

    double y;
    y = aoY.GetPosition();
    out_double("Y axis's absolute position value is:", y);
}

Remark

See Also

Header to Included

origin.h