2013-01-22 36 views

回答

1

通過使用LINQ,你可以做到以下幾點:

DataPointCollection points = chart1.Series[0].Points; 
IEnumerable<DataPoint> range = 
    from p in points 
    where p.XValue > a && p.XValue < b 
    select p; 

range包含所有數據點,其x值大於a和小於b

+0

謝謝你運作良好。 – aihenry2980

相關問題