







![]() ![]() ![]() |
PDFTron SilverDox SDK |
DocumentViewer Members |
DocumentViewer Class Constructors Methods Fields Properties Events See Also Send Feedback |
The DocumentViewer type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | DocumentViewer |
Constructs a DocumentViewer.
|
Methods
Name | Description | |
---|---|---|
![]() | CloseDocument |
Closes the current document leaving a blank viewer.
|
![]() | DisplayBookmark |
Scrolls the viewer so that the position of the bookmark is in the upper-left corner of the viewer.
|
![]() | DisplayFirstPage |
Scrolls the viewer so that the upper-left corner of the Document's first page is in the upper-left corner of the viewer.
|
![]() | DisplayLastPage |
Scrolls the viewer so that the upper-left corner of the Document's last page is in the upper-left corner of the viewer.
|
![]() | GetCanvas |
Gets the canvas of a currently displayed page.
|
![]() | GetCanvasAtPoint |
Gets the page number and canvas element at a given screen location.
|
![]() | GetSelectedText |
Returns the selected text in the current document
|
![]() | LoadAsync |
Loads a .xod document into the viewer.
|
![]() | OnApplyTemplate |
(Overrides OnApplyTemplate()()()().)
(Overrides FrameworkElement..::..OnApplyTemplate()()()().) |
![]() | OnContentKeyDown |
Called in response to a KeyDown event in the DocumentViewer's viewing area.
|
![]() | OnContentKeyUp |
Called in response to a KeyUp event in the DocumentViewer's viewing area.
|
![]() | OnContentLoaded |
Called in response to the Loaded event of the DocumentViewer's viewing area.
|
![]() | OnContentMouseEnter |
Called in response to a MouseEnter event in the DocumentViewer's viewing area.
|
![]() | OnContentMouseLeave |
Called in response to a MouseLeave event in the DocumentViewer's viewing area.
|
![]() | OnContentMouseLeftButtonDown |
Called in response to a MouseLeftButtonDown event in the DocumentViewer's viewing area.
|
![]() | OnContentMouseLeftButtonUp |
Called in response to a MouseLeftButtonUp event in the DocumentViewer's viewing area.
|
![]() | OnContentMouseMove |
Called in response to a MouseMove event in the DocumentViewer's viewing area.
|
![]() | OnContentMouseRightButtonDown |
Called in response to a MouseRightButtonDown event in the DocumentViewer's viewing area.
|
![]() | OnContentMouseRightButtonUp |
Called in response to a MouseRightButtonUp event in the DocumentViewer's viewing area.
|
![]() | OnContentMouseWheel |
Called in response to a MouseWheel event in the DocumentViewer's viewing area.
|
![]() | RefreshTemplate |
Used to refresh the DocumentViewer after it has been assigned a new template to change the page layout.
|
![]() | RotateClockwise |
Rotates all pages in the currently displayed document clockwise by 90 degrees.
|
![]() | RotateCounterClockwise |
Rotates all pages in the currently displayed document counter-clockwise by 90 degrees.
|
![]() | ScrollToAnnotation |
Adjusts the document viewer's x and y position so it focuses on the given annotation.
|
![]() | SearchTextAsync |
Searches for a particular text string on the currently displayed Document, starting on the current page (see CurrentPageNumber).
|
![]() | SetFitMode |
Sets how the document will scale to fit the size of the scrollviewer's viewport.
|
![]() | ZoomTo |
Adjusts the viewer's zoom factor, and positions the point (x,y) at the upper left corner of the viewer.
|
Fields
Name | Description | |
---|---|---|
![]() ![]() | FitModeHeightProperty |
For binding to FitModeHeight.
|
![]() ![]() | FitModeWidthProperty |
For binding to FitModeWidth.
|
Properties
Name | Description | |
---|---|---|
![]() | AnnotationManager |
Manages the annotations displayed over the Document's pages displayed in the viewer.
|
![]() | CurrentPageNumber |
Get or set the page number of the currently displayed page.
|
![]() | CustomCursor | |
![]() | DefaultFitModeHeight |
Defines the FitModeHeight that will be set when a new document is opened. Initially set to null, in which case a new document will
be with the same FitModeHeight as the current document.
|
![]() | DefaultFitModeWidth |
Defines the FitModeWidth that will be set when a new document is opened. Initially set to null, in which case a new document will
be with the same FitModeWidth as the current document.
|
![]() | DefaultZoomLevel |
Defines the default Zoom level when a new document is openened with FitModeWidth and FitModeHeight set to PageViewModes.Zoom.
If set to null, a new document will open with the same zoom level as the current document.
|
![]() | DisplayMode |
The mode that controls which pages the viewer will display.
|
![]() | Document |
The Document that is currently being displayed by the viewer.
|
![]() | FitModeHeight |
Read if the document's Zoom property will be adjusted so that the height of the current page or panel will exactly fit into the available space. This parameter is set with the method SetFitMode(DocumentViewer..::..FitModes, DocumentViewer..::..FitModes).
|
![]() | FitModeWidth |
Read if the document's Zoom property will be adjusted so that the width of the current page or panel will exactly fit into the available space. This parameter is set with the method SetFitMode(DocumentViewer..::..FitModes, DocumentViewer..::..FitModes).
|
![]() | PageCount |
The number of pages in the currently displayed document.
|
![]() | Scale | |
![]() | ToolMode |
Changes the behavior of the viewer. See DocumentViewer..::..ToolModes for valid settings and their descriptions.
|
![]() | Zoom |
Used to get or set the magnification factor of the displayed pages.
|
Events
Name | Description | |
---|---|---|
![]() | AnnotationPopupContentChanged |
Occurs when the user manually changes the contents of a popup
NOTE: Does not trigger when PopupContents is set programatically
|
![]() | AnnotationResized |
Occurs when an annotation is resized
|
![]() | AnnotationsAdded |
Occurs when an annotation is added
|
![]() | AnnotationsCreated |
Occurs when an annotation is created via. a tool
|
![]() | AnnotationsDeselected |
Occurs when an annotation is deselected
|
![]() | AnnotationsDragged |
Occurs when annotations are dragged by the user;
WARNING: triggered a ton of times when user is move dragging annotations
|
![]() | AnnotationsMoveCompleted |
Occurs when the user finishes moving annotations (i.e the mouse is released)
|
![]() | AnnotationsRemoved |
Occurs when an annotation is removed
|
![]() | AnnotationsSelected |
Occurs when an annotation is selected
|
![]() | PropertyChanged |
Notification event that is raised when a bound property changes.
|
![]() | ToolModeChanged |
Occurs when the DocumentViewer tool mode is changed
|