电影光辉岁月,真爱你的云吉他谱,哈姆雷特读书笔记
winforn中设置zedgraph的焦点显示坐标格式化以及显示三个坐标数的解决办法:
https://blog.csdn.net/badao_liumang_qizhi/article/details/102466190
winform中实现zedgraph的多条y轴(附源码下载):
https://blog.csdn.net/badao_liumang_qizhi/article/details/100132245
在多条曲线中,鼠标双击面板,弹窗显示距离焦点最近的坐标的值。
注:
博客主页:
关注公众号
霸道的程序猿
获取编程相关电子书、教程推送与免费下载。
双击事件绑定
zgc.doubleclickevent += zgc_doubleclickevent;
其中zgc
zedgraphcontrol zgc
实现方法
private static bool zgc_doubleclickevent(zedgraphcontrol sender, mouseeventargs e) { pointf mousept = new pointf(e.x, e.y); curveitem nearstcurve; int i ; global.zedgraphcontrol1.graphpane.findnearestpoint(mousept, out nearstcurve,out i); if (nearstcurve != null && nearstcurve.points[i]!= null) { double x = nearstcurve.points[i].x; double y = nearstcurve.points[i].y; string title = global.zedgraphcontrol1.graphpane.xaxis.title.text; devexpress.xtraeditors.xtramessagebox.show("索引值:" + i + " x:" + x + " y:" + y + " xtitle:" + title); } return true; }
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
C#实现获取本地内网(局域网)和外网(公网)IP地址的方法分析
浅谈Visual Studio 2019 Vue项目的目录结构
Visual Studio 2019配置vue项目的图文教程详解
网友评论