zoukankan      html  css  js  c++  java
  • 设置zedgraph鼠标拖拽和局部放大属性(转帖)

    说一下几个属性的意义和具体应用:

    (1)鼠标拖拽显示区域

    PanModifierKeys ->> Gets or sets a value that determines which modifier keys will be used as a primary option to trigger a pan event. 意思就是调用一个拖拽命令时要添加的快捷键组合,比如我们使用的复制快捷键ctrl+c,这个命令就是来要我们设置调用这个方法的方式。

    使用时的语法:zedGraphControl1.PanModifierKeys = Keys.Shift;(这是按住shift键,在点击鼠标左键可以拖拽zedGraphControl1的显示视图)

                             zedGraphControl1.PanModifierKeys = Keys.none;(直接可以用鼠标左键点击来拖拽)

    (2)鼠标局部放大

    ZoomStepFraction ->> Gets or sets the step size fraction for zooming with the mouse wheel. A value of 0.1 will result in a 10% zoom step for each mouse wheel movement.

    意思就是设置缩放比例与鼠标滚轮步骤大小关系

    使用时的语法:zedGraphControl1.ZoomStepFraction = 0;(这是鼠标滚轮缩放的比例为零,就是禁止使用鼠标滚轮的放大缩小功能)

                            zedGraphControl1.ZoomStepFraction = 0.1;(这是鼠标滚轮缩放的比例大小,值越大缩放就越灵敏)

  • 相关阅读:
    Python练习题 016:猴子吃桃
    Date() 及其 如何验证用户输入的日期是合法的
    关于事件触发的一个小tips
    KVO监听导航栏
    使用CoreText动态下载更换字体
    UICollectionView 的使用
    echarts散点图搭配时间轴
    使用百度echarts画图表的步骤
    canvas画图中drawImage使用
    html5canvas简单画图
  • 原文地址:https://www.cnblogs.com/xihong2014/p/4212457.html
Copyright © 2011-2022 走看看