Tôi có hai đường cong trên sự kiểm soát ZedGraph, sau khi âm mưu cả các đường cong ...Làm thế nào để mang lại đường cong cụ thể trong mặt trận trong ZedGraph
PointPairList thresholdList = new PointPairList();
PointPairList powerList = new PointPairList();
private void plotPower()
{
// Create an object to access ZedGraph Pane
GraphPane pane = zedGraphControl1.GraphPane;
LineItem thresholdLine = new LineItem("thresholdLine");
LineItem powerLine = new LineItem("powerLine");
// Set the Threshold Limit
double thresoldLimit = Convert.ToDouble(numAnalysisThreshold2.Value);
// Points
double[] x = new double[]{0, pane.XAxis.Scale.Max};
double[] y = new double[]{thresoldLimit, thresoldLimit};
// Set the threshold line curve list
thresholdList.Add(x, y);
// Set the Power Line curve list
powerdList.Add(XData, YData);
// Add Curves
thresholdLine = pane.AddCurve("", thresholdList, Color.Red, SymbolType.None);
powerLine = pane.AddCurve("", powerList, Color.Red, SymbolType.None);
// Refresh Chart
this.Invalidate();
zedGraphControl1.Refresh();
}
từ mã ở trên, tôi quản lý để vẽ hai đường cong như đường cong đường điện trên đường cong ngưỡng.
Bây giờ câu hỏi của tôi là, nếu tôi muốn mang bất kỳ một trong những đường cong ở phía trước .... Có phương pháp nào có sẵn (ví dụ: bringittoFront() ....) ...?
Cảm ơn rất nhiều đã dành thời gian .... :)
Rất dù vấn đề, giả sử rằng CurveItem có thể được sử dụng trên * một số * GraphPanes ... – Larry