DocumentViewer Methods

PDFTron SilverDox SDK

Collapse imageExpand ImageCopy imageCopyHover image

The DocumentViewer type exposes the following members.

Methods

  NameDescription
Public methodCloseDocument
Closes the current document leaving a blank viewer.
Public methodDisplayBookmark
Scrolls the viewer so that the position of the bookmark is in the upper-left corner of the viewer.
Public methodDisplayFirstPage
Scrolls the viewer so that the upper-left corner of the Document's first page is in the upper-left corner of the viewer.
Public methodDisplayLastPage
Scrolls the viewer so that the upper-left corner of the Document's last page is in the upper-left corner of the viewer.
Public methodGetCanvas
Gets the canvas of a currently displayed page.
Public methodGetCanvasAtPoint
Gets the page number and canvas element at a given screen location.
Public methodGetSelectedText
Returns the selected text in the current document
Public methodLoadAsync
Loads a .xod document into the viewer.
Public methodOnApplyTemplate
(Overrides OnApplyTemplate()()()().)
(Overrides FrameworkElement..::..OnApplyTemplate()()()().)
Protected methodOnContentKeyDown
Called in response to a KeyDown event in the DocumentViewer's viewing area.
Protected methodOnContentKeyUp
Called in response to a KeyUp event in the DocumentViewer's viewing area.
Protected methodOnContentLoaded
Called in response to the Loaded event of the DocumentViewer's viewing area.
Protected methodOnContentMouseEnter
Called in response to a MouseEnter event in the DocumentViewer's viewing area.
Protected methodOnContentMouseLeave
Called in response to a MouseLeave event in the DocumentViewer's viewing area.
Protected methodOnContentMouseLeftButtonDown
Called in response to a MouseLeftButtonDown event in the DocumentViewer's viewing area.
Protected methodOnContentMouseLeftButtonUp
Called in response to a MouseLeftButtonUp event in the DocumentViewer's viewing area.
Protected methodOnContentMouseMove
Called in response to a MouseMove event in the DocumentViewer's viewing area.
Protected methodOnContentMouseRightButtonDown
Called in response to a MouseRightButtonDown event in the DocumentViewer's viewing area.
Protected methodOnContentMouseRightButtonUp
Called in response to a MouseRightButtonUp event in the DocumentViewer's viewing area.
Protected methodOnContentMouseWheel
Called in response to a MouseWheel event in the DocumentViewer's viewing area.
Public methodRefreshTemplate
Used to refresh the DocumentViewer after it has been assigned a new template to change the page layout.
Public methodRotateClockwise
Rotates all pages in the currently displayed document clockwise by 90 degrees.
Public methodRotateCounterClockwise
Rotates all pages in the currently displayed document counter-clockwise by 90 degrees.
Public methodScrollToAnnotation
Adjusts the document viewer's x and y position so it focuses on the given annotation.
Public methodSearchTextAsync
Searches for a particular text string on the currently displayed Document, starting on the current page (see CurrentPageNumber).
Public methodSetFitMode
Sets how the document will scale to fit the size of the scrollviewer's viewport.
Public methodZoomTo
Adjusts the viewer's zoom factor, and positions the point (x,y) at the upper left corner of the viewer.

See Also