DataPlot::RemoveDataMarker

Description

Remove data markers.

Syntax

int RemoveDataMarker( int nBegin, int nEnd )

Parameters

nBegin
[input] the begin index of data point want to marker.
nEnd
[input] the end index of data point want to marker.

Return

returns 1 for success, 0 for failure.

Examples

void DataPlot_RemvoeDataMarker_Ex1()
{
        //make sure there exists a graph with dataplots on it before running this code.
        GraphLayer gl = Project.ActiveLayer();
        if ( gl )
        {
                int i1, i2;
                if( gl.GetDataMarkers(i1, i2) ) // if exist data markers
                {             
                        DataPlot dp = gl.DataPlots(0); //get the first dataplot on graphlayer
                        if ( dp )
                        {                     
                                int nRet = dp.RemoveDataMarker(i1, i2);
                                out_int("", nRet); // output 1 if successfully remove 
                        }
                }
        }
}

Remark

See Also

GraphLayer::SetDataMarkers, GraphLayer::GetDataMarkers, DataPlot::GetDataMarkers

header to Include

origin.h