如何在chartarea c#winform中获取当前scaleView中的点?
.net 4 vs2010 winform c# 添加了一些使用如何在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
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
的所有数据点