2.2.4.17.8 GraphLayer::ClearMarkers

Description

Remove the markers in the current graphLayer.

Syntax

BOOL ClearMarkers( int nIndex = -1, DWORD dwOpts = OCD_ASK|OCD_UNDO )

Parameters

nIndex
[input] marker index or negative to do all. //Note, now, we do not use this argument, and remove all
dwOpts
[input] OCD_UNDO the operation is undoable, OCD_ASK will ask if use to confirm remove all.

Return

Examples

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;
}

Remark

See Also

Header to Include

origin.h