ptPanCurrentPen() 函数
- Last UpdatedSep 24, 2024
- 1 minute read
在脚本中,ptPanCurrentPen() 函数可用于沿纵数值轴向上或向下滚动“16 笔趋势”的笔。垂直滚动由主趋势单位与副趋势单位数(作为参数值指定)确定。
类别
笔趋势
语法
ptPanCurrentPen(TrendName,MajorUnits, MinorUnits);
参数
TrendName
趋势对象的名称。TrendName 必须是字符串常量或消息标记。
MajorUnits
系数,确定按主刻度线定义的单位滚动的次数。负数表示沿纵轴向下滚动。
MinorUnits
系数,确定按副刻度线定义的单位额外滚动的次数。负数表示沿纵轴向下滚动。
示例
本例将笔向上滚动 1 个主刻度线。
ptPanCurrentPen("TrendName", 1, 0);
本例将笔向上滚动 0.5 个副趋势刻度。
ptPanCurrentPen("TrendName", 0, 0.5);
本例将笔向下滚动 2 个主刻度线加上 0.5 个副刻度线。
ptPanCurrentPen("TrendName", -2, -0.5);
本例向上滚动 1 个主刻度线并向下滚动 2 个副刻度线。
ptPanCurrentPen("TrendName", 1, -2);