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

  • 相关阅读:
    “爆奇葩”项目之索引页
    android 的生命周期自我理解
    Jquery Mobile 中文API站
    根据两点经纬度计算距离
    sql语句查询经纬度范围
    Asp.net core 笔记
    Docker 笔记
    IOC和DI
    PHP学习笔记十、图像处理
    PHP学习笔记九、cookie与session
  • 原文地址:https://www.cnblogs.com/xihong2014/p/4212457.html
Copyright © 2011-2022 走看看