ClearMarkers
Remove the markers in the current graphLayer.
BOOL ClearMarkers( int nIndex = -1, DWORD dwOpts = OCD_ASK|OCD_UNDO )
void GraphLayer_ClearMarkers_Ex1() { //make sure there exists a graph with dataplots on it before running this code. //use data selector tools to add datamarker on it. GraphLayer gl = Project.ActiveLayer(); if ( !gl ) { printf("Can not access active graphlayer!"); return; } int i1, i2; if ( gl.GetDataMarkers(i1, i2) ) gl.ClearMarkers(i1, i2); //if has data marker, remove all return; }
origin.h