DocumentViewer Members

PDFTron SilverDox SDK

Collapse imageExpand ImageCopy imageCopyHover image

The DocumentViewer type exposes the following members.

Constructors

  NameDescription
Public methodDocumentViewer
Constructs a DocumentViewer.

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.

Fields

  NameDescription
Public fieldStatic memberFitModeHeightProperty
For binding to FitModeHeight.
Public fieldStatic memberFitModeWidthProperty
For binding to FitModeWidth.

Properties

  NameDescription
Public propertyAnnotationManager
Manages the annotations displayed over the Document's pages displayed in the viewer.
Public propertyCurrentPageNumber
Get or set the page number of the currently displayed page.
Public propertyCustomCursor
The cursor to use when in ToolMode is set to Custom.
Public propertyDefaultFitModeHeight
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.
Public propertyDefaultFitModeWidth
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.
Public propertyDefaultZoomLevel
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.
Public propertyDisplayMode
The mode that controls which pages the viewer will display.
Public propertyDocument
The Document that is currently being displayed by the viewer.
Public propertyFitModeHeight
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).
Public propertyFitModeWidth
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).
Public propertyPageCount
The number of pages in the currently displayed document.
Public propertyScale
Public propertyToolMode
Changes the behavior of the viewer. See DocumentViewer..::..ToolModes for valid settings and their descriptions.
Public propertyZoom
Used to get or set the magnification factor of the displayed pages.

Events

  NameDescription
Public eventAnnotationPopupContentChanged
Occurs when the user manually changes the contents of a popup NOTE: Does not trigger when PopupContents is set programatically
Public eventAnnotationResized
Occurs when an annotation is resized
Public eventAnnotationsAdded
Occurs when an annotation is added
Public eventAnnotationsCreated
Occurs when an annotation is created via. a tool
Public eventAnnotationsDeselected
Occurs when an annotation is deselected
Public eventAnnotationsDragged
Occurs when annotations are dragged by the user; WARNING: triggered a ton of times when user is move dragging annotations
Public eventAnnotationsMoveCompleted
Occurs when the user finishes moving annotations (i.e the mouse is released)
Public eventAnnotationsRemoved
Occurs when an annotation is removed
Public eventAnnotationsSelected
Occurs when an annotation is selected
Public eventPropertyChanged
Notification event that is raised when a bound property changes.
Public eventToolModeChanged
Occurs when the DocumentViewer tool mode is changed

See Also