开发者

Simply Removing A Curve?

开发者 https://www.devze.com 2023-01-05 12:10 出处:网络
I\'m having trouble figuring out how to get this simple operation to work. LineItem Curve = Pane.AddCurve(Name,Data,Color.blue,SymbolType.Diamond);

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();
0

精彩评论

暂无评论...
验证码 换一张
取 消