ViewerMode

查看器交互

描述

决定左键做什么:vmSelect 拖选文本,也是默认值;vmHand 平移视图;vmZoom 拖出选框,放大到填满视口;vmSnapshot 把拖过的区域复制为位图;vmHighlight 给拖过的区域打上常驻的半透明高亮;vmDrawInk、vmDrawSquare 和 vmDrawCircle 则画墨迹、矩形或圆形,由 CommitDrawnShape 提交为注释

切换模式会取消进行中的拖拽并切换光标:vmHand 为手形指针,vmZoom、vmSnapshot 与 vmHighlight 为十字线,其余为默认光标

语法

Delphi

Property ViewerMode: TPDFlibViewerMode Read FViewerMode Write SetViewerMode;

另请参阅

SetDisplayMode, OnMarqueeSelect, OnSnapshot, CommitDrawnShape, DrawColor, DrawLineWidth, TPDFlibViewer