







![]() ![]() |
PDFTron SilverDox SDK |
DocumentViewer..::..ToolModes Enumeration |
DocumentViewer Class See Also Send Feedback |
DocumentViewer supports 'built-in' tool modes which change the behavior of the viewer.
Namespace: PDFTron.SilverDox.Controls
Assembly: SilverDox (in SilverDox.dll) Version: 1.2.4413.29010
Syntax
C# |
---|
public enum ToolModes |
Visual Basic |
---|
Public Enumeration ToolModes |
Visual C++ |
---|
public enum class ToolModes |
Members
Member name | Value | Description | |
---|---|---|---|
Pan | 0 | The mouse can be used to pan the document. | |
TextSelect | 1 | The mouse can be used to select text. | |
PanAndAnnotationEdit | 2 | The mouse can be used to pan the document except when it is over an annotion, when it can be used to select/move/resize the annotation. | |
AnnotationEdit | 3 | The mouse can be used to select/move/resize annotations. | |
AnnotationCreateCustom | 4 | The mouse can be used to create a custom annotation that derives from Annotation. Note that AnnotationCreator must be set to a static method defined by the custom annotation that returns a new annotation. | |
AnnotationCreateEllipse | 5 | The mouse can be used to create Ellipse annotations. | |
AnnotationCreateFreeHand | 6 | The mouse can be used to create FreeHand annotations. | |
AnnotationCreateLine | 7 | The mouse can be used to create Line annotations. | |
AnnotationCreateRectangle | 8 | The mouse can be used to create Rectangle annotations. | |
AnnotationCreateSticky | 9 | The mouse can be used to create Sticky annotations. | |
AnnotationCreateTextHighlight | 10 | The mouse can be used to create TextHighlight annotations. | |
AnnotationCreateTextStrikeout | 11 | The mouse can be used to create TextStrikeout annotations. | |
AnnotationCreateTextUnderline | 12 | The mouse can be used to create TextUnderline annotations. | |
Custom | 13 | The mouse behavior is defined by the user, and will not select text or cause the document to pan. The DocumentViewer does not implement any keyboard or mouse behaviour in response to keyboard or mouse events when in Custom tool mode. |