RemovePlot
Removes one DataPlot from layer. The object is referred to by index.
Removes one DataPlot from layer. The object is referred to by refercence.
BOOL RemovePlot( int nIndex, DWORD dwCntrl = 0 )
BOOL RemovePlot( DataPlot & dp, DWORD dwCntrl = 0 )
TRUE for success, otherwise FALSE
EX1
// the following code remove all data plots in the active layer void GraphLayer_RemovePlot_ex1() { GraphLayer gl = Project.ActiveLayer(); int nPlots = gl.DataPlots.Count(); for(int ii = 0; ii < nPlots; ii++) gl.RemovePlot(0); }
origin.h