如何在chartarea c#winform中获取当前scaleView中的点?

如何在chartarea c#winform中获取当前scaleView中的点?,c#,winforms,visual-studio-2010,charts,point,C#,Winforms,Visual Studio 2010,Charts,Point,.net 4 vs2010 winform c# 添加了一些使用 chart1.Series[0].Points.AddXY(x,y); 然后使用缩放x轴 chart1.ChartAreas[0].AxisX.ScaleView.Zoom(a,b); 返回屏幕上所有点的任何方法(b>point.Xvalue>a) 谢谢大家! 通过使用LINQ,您可以执行以下操作: DataPointCollection points = chart1.Series[0].Points; IEnumerabl

.net 4 vs2010 winform c#

添加了一些使用

chart1.Series[0].Points.AddXY(x,y);
然后使用缩放x轴

chart1.ChartAreas[0].AxisX.ScaleView.Zoom(a,b);
返回屏幕上所有点的任何方法(b>point.Xvalue>a)


谢谢大家!

通过使用LINQ,您可以执行以下操作:

DataPointCollection points = chart1.Series[0].Points;
IEnumerable<DataPoint> range =
    from p in points
    where p.XValue > a && p.XValue < b
    select p;
DataPointCollection points=chart1.Series[0]。点;
可数范围=
从p点开始
其中p.XValue>a&&p.XValue
范围
包含X值大于
a
且小于
b
的所有数据点