Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我无法弄清楚如何让这个简单的操作起作用。
LineItem Curve = Pane.AddCurve(Name,Data,Color.blue,SymbolType.Diamond); zgc.Refresh();
现在如何删除我刚刚添加的曲线?
Pane.CurveList.Remove()?如果是这样,我如何设置一个等于现有曲线的对象以用作方法 Remove() 的参数?
您传入对您创建的曲线的引用:
Pane.CurveList.Remove(Curve);
文档可在此处获得。
未经测试,但...
Pane.CurveList[ Pane.CurveList.Count - 1 ].Clear(); zgc.Refresh();