[英]How to disable zoom in chart control in C#?
在.Net 4.0 WinForms應用程序中的System.Windows.Forms.DataVisualization.Charting.Chart
控件中選擇鼠標后,如何禁用縮放? 實際上,我想在其他情況下使用選定區域,但不進行縮放。
剛剛設置:
chart.ChartAreas["ChartAreaName"].AxisX.ScaleView.Zoomable = false;
chart.ChartAreas["ChartAreaName"].AxisY.ScaleView.Zoomable = false;
我有同樣的問題,對我有幫助。
chart1.ChartAreas[0].AxisX.ScaleView.Zoomable = false;
chart1.ChartAreas[0].AxisY.ScaleView.Zoomable = false;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.