RemoveDataMarker
Remove data markers.
int RemoveDataMarker( int nBegin, int nEnd )
returns 1 for success, 0 for failure.
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 } } } }
GraphLayer::SetDataMarkers, GraphLayer::GetDataMarkers, DataPlot::GetDataMarkers
origin.h