TPDFlibViewerMode
Data types, viewer interaction
Description
Enum that selects what the left mouse button does on the viewer surface
Consumed by the ViewerMode property; the tool-mode actions of PDFlibViewerActions assign and mirror the first five values, and vmSelect is the default
Declaration
TPDFlibViewerMode = (vmSelect, vmHand, vmZoom, vmSnapshot, vmHighlight, vmDrawInk, vmDrawSquare, vmDrawCircle);Values
| vmSelect | Drags a text selection marquee and follows links on plain clicks, the default tool |
|---|---|
| vmHand | Pans the view by dragging |
| vmZoom | Drags a marquee that zooms to fill the viewport |
| vmSnapshot | Copies the dragged region as a bitmap to the clipboard and fires OnSnapshot |
| vmHighlight | Marks the dragged region with a persistent translucent highlight |
| vmDrawInk | Draws a freehand ink stroke and commits it as an ink annotation through CommitDrawnShape |
| vmDrawSquare | Drags a rectangle and commits it as a square annotation through CommitDrawnShape |
| vmDrawCircle | Drags a rectangle and commits it as a circle annotation inscribed in it through CommitDrawnShape |
See also
ViewerMode, TPDFlibViewerSelectMode, TPDFlibViewerHandMode, TPDFlibViewerMarqueeZoomMode, TPDFlibViewerSnapshotMode, TPDFlibViewerHighlightMode, CommitDrawnShape, DrawColor, DrawLineWidth, TPDFlibViewer