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

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

     以上希望朋友们在用到zedgraph控件时有所帮助,有不对的地方欢迎指正!!

  • 相关阅读:
    手机进水不要慌,四个步骤告诉您正确处理方法!
    2021-08-17:学习项目代码流程
    Docker使用Centos镜像安装Openssh服务
    OpenResty简介、下载流程、简单教学
    go接收者和锁注意事项
    PHPstorm精进
    centos7找回root密码
    功能测试
    删除排序数组中的重复项
    Java多线程
  • 原文地址:https://www.cnblogs.com/zeroone/p/3109245.html
Copyright © 2011-2022 走看看