2.2.4.24.11 Layer::GetPosition

Description

Get Layer area

Syntax

int GetPosition( double * pVals = NULL )

Parameters

pVals
[output] 4 values that are the width, height, left and top of the layer area

Return

return layer position units

Examples

EX1

//Output the current layer's Left, top, width and height.
void Layer_GetPosition_ex1()
{
    GraphLayer gl = Project.ActiveLayer();
    if(gl)
    {
        double xx[TOTAL_POS];
        int nCurrent = gl.GetPosition(xx);
        printf("Current Settings\n%d:Left=%4.2f, Top=%4.2f, Width=%4.2f, Height=%4.2f\n", nCurrent, xx[LEFT_POS], xx[TOP_POS], xx[WIDTH_POS], xx[HEIGHT_POS]);
    }
}

Remark

See Also

Layer::SetPosition, Layer::UnitsConvert

Header to Include

origin.h