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;(这是鼠标滚轮缩放的比例大小,值越大缩放就越灵敏)

  • 相关阅读:
    java面向对象4-多态
    机器学习降维--SVD奇异值分解
    hive中的null
    熵(二)-交叉熵与相对熵
    指数家族-Beta分布
    指数族函数
    java面向对象3-继承(继承、抽象类、抽象接口)
    网页自动刷新
    spring +hibernate 启动优化【转】
    svn is already locked解决方案
  • 原文地址:https://www.cnblogs.com/xihong2014/p/4212457.html
Copyright © 2011-2022 走看看