0

我正在使用 ZedGraph,想知道如何找到构成整条曲线的点。

foreach(var Curve in GraphPane.CurveList)
{
    foreach(var Point in Curve.???)
    {
        Console.WriteLine(Point.X+" "+Point.Y); // <- I'm not sure if this is correct, but this is what I want
    }
}

我怎样才能做到这一点?

4

1 回答 1

1

基于文档(http://zedgraph.sourceforge.net/documentation/html/T_ZedGraph_CurveList.htm),也许尝试这样的事情:

foreach( var Curve in GraphPane.CurveList )
{
    for ( int i = 0; i < Curve.Points.Count; i++ )
    {        
        var Pt = Curve.Points[i];
        Console.WriteLine(Pt.X+" "+Pt.Y);
    }
}
于 2010-07-28T18:12:25.203 回答