开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜