Simply Removing A Curve?
I'm having trouble figuring out how to get this simple operation to work.
LineItem Curve = Pane.AddCurve(Name,Data,Color.blue,SymbolType.Diamond);
zgc.Refresh();
Now how do I remove the curve I just added?
开发者_StackOverflowPane.CurveList.Remove()?' If so, how can I set an object equal to an existing curve to use as a parameter of method Remove()?
You pass in a reference to the curve that you created:
Pane.CurveList.Remove(Curve);
The documentation is available here.
Untested but...
Pane.CurveList[ Pane.CurveList.Count - 1 ].Clear();
zgc.Refresh();
精彩评论