2.2.4.17.22 GraphLayer::GetScaleElements


Description

Get the scale elements related attributes of the layer

Syntax

BOOL GetScaleElements( int & nScaleMode, double & dFixedFactor )

Parameters

nScaleMode
[output] 0 means Scale With Layer Frame, 1 means Fixed Factor mode.
dFixedFactor
[output] The fixed factor value

Return

Return TRUE if success, or FALSE if fail.

Examples

EX1

int GetScaleElements_ex1()
{
    GraphLayer        gl = Project.ActiveLayer();
    if(gl)
    {
        int        nScaleMode;
        double    dFixedFactor;
        BOOL bRet = gl.GetScaleElements(nScaleMode, dFixedFactor);
        ASSERT(bRet);
    }
    return 0;
}

Remark

See Also

GraphLayer::SetScaleElements

Header to Included

origin.h