2.2.4.17.28 GraphLayer::MoveMarkerLine


Description

Move marker lines in layer.

Syntax

int MoveMarkerLine( double dNewPos, int nIndex, BOOL bVertical = TRUE )

Parameters

dNewPos
[input] marker lines position
nIndex
[input] marker index
bVertical
[input] vertical or horizontal, default:TRUE

Return

0 if success

Examples

EX1

//assume there is a row numbers symbol plot
void GraphLayer_MoveMarkerLine_ex1()
{
    GraphLayer gl = Project.ActiveLayer();
    if( !gl.IsValid() )
        return;
    
    vector     vPos;
    vPos.Add(1);
    vPos.Add(4);
    gl.SetMarkerLines(vPos, TRUE, TRUE);
    
    int nRet = gl.MoveMarkerLine(6, 0, TRUE);
    printf("MoveMarkerLine return: %d\n", nRet);
}

Remark

See Also

GraphLayer::SetMarkerLines

Header to Included

origin.h