The DocumentViewer type exposes the following members.

Constructors

  NameDescription
Public methodDocumentViewer
Create a new instance of the PagesViewer control.

Methods

  NameDescription
Public methodBeginUpdate
Call this method in pairs with EndUpdate. In between these calls, the control is not updated.
Protected methodDispose
Clean up any resources being used.
(Overrides Control..::..Dispose(Boolean).)
Public methodEndUpdate
Call this method in pairs with BeginUpdate. In between these calls, the control is not updated.
Public methodEnsureVisible
Scroll the given rectangle into view.
Public methodFindPage
Find the page at a given position.
Public methodGetIntersecting
Returns a subset of a collection of interactors that overlap with the given rectangle.
Public methodGetPageToDocumentTransform
Returns a transformation that transforms coordinates from page space to document space. If no document is present, or the specified page is not present, the identity transformation will be returned.
Public methodStatic memberGetPdfPageTransform
Returns a transformation that transforms coordinates from PDF page space (with the origin at the lower left of the page) to "winforms" page space, i.e. with the origin at the upper left corner of the page. If no document is present, or the specified page is not present, the identity transformation will be returned.
Public methodGoToDestination
Navigate to the given destination.
Protected methodOnAnnotationInteractorCreated
Invoked after an annotation interactor gets created.
Protected methodOnClose
Invoked just before a document will be closed.
Protected methodOnDocumentInteractorCreated
Invoked after a document interactor gets created.
Protected methodOnDragDrop
Raises the DragDrop event and dispatches the event to the interactor that the mouse is over.
(Overrides Control..::..OnDragDrop(DragEventArgs).)
Protected methodOnDragEnter
Raises the DragEnter event and prepares the document viewer for dragging.
(Overrides Control..::..OnDragEnter(DragEventArgs).)
Protected methodOnDragLeave
Raises the DragLeave event.
(Overrides Control..::..OnDragLeave(EventArgs).)
Protected methodOnDragOver
Raises the DragOver event and dispatches the event to the interactor that the mouse is over.
(Overrides Control..::..OnDragOver(DragEventArgs).)
Protected methodOnFocusChanged
Invoked when the focus of the document viewer changes.
Protected methodOnGotFocus
Invoked after the DocumentViewer control got the focus.
(Overrides Control..::..OnGotFocus(EventArgs).)
Protected methodOnKeyDown
Invoked when the document viewer receives a KeyDown event. This method will first raise the KeyDown event of the DocumentViewer. If the event does not get handled by an event handler (i.e. the Handled property of the event remains false), it will pass it to the interactor that has the focus. If the interactor handles the event, it will prohibit further processing by setting the Handled flag.
(Overrides Control..::..OnKeyDown(KeyEventArgs).)
Protected methodOnKeyPress
Invoked when the document viewer receives a KeyPress event. This method will first raise the KeyPress event of the DocumentViewer. If the event does not get handled by an event handler (i.e. the Handled property of the event remains false), it will pass it to the interactor that has the focus. If the interactor handles the event, it will prohibit further processing by setting the Handled flag.
(Overrides Control..::..OnKeyPress(KeyPressEventArgs).)
Protected methodOnKeyUp
Invoked when the document viewer receives a KeyUp event. This method will first raise the KeyPress event of the DocumentViewer. If the event does not get handled by an event handler (i.e. the Handled property of the event remains false), it will pass it to the interactor that has the focus. If the interactor handles the event, it will prohibit further processing by setting the Handled flag.
(Overrides Control..::..OnKeyUp(KeyEventArgs).)
Public methodOnMissingPage
Protected methodOnMouseDown
Raises the System.Windows.Forms.Control.MouseDown event.
(Overrides Control..::..OnMouseDown(MouseEventArgs).)
Protected methodOnMouseMove
Raises the System.Windows.Forms.Control.MouseMove event.
(Overrides Control..::..OnMouseMove(MouseEventArgs).)
Protected methodOnMouseUp
Raises the System.Windows.Forms.Control.MouseUp event.
(Overrides Control..::..OnMouseUp(MouseEventArgs).)
Protected methodOnMouseWheel
Raises the System.Windows.Forms.Control.MouseWheel event.
(Overrides Control..::..OnMouseWheel(MouseEventArgs).)
Protected methodOnOpen
Invoked after a document has been opened.
Protected methodOnPageInteractorCreated
Invoked after a page interactor gets created.
Protected methodOnPaint
Raises the System.Windows.Forms.Paint event.
(Overrides Control..::..OnPaint(PaintEventArgs).)
Protected methodOnVisibleRectangleChanged
Invoked when the visible rectangle of the document viewer changes.
Protected methodOnZoomFactorChanged
Invoked when the zoom factor of the document viewer changes.
Protected methodProcessCmdKey (Overrides Control..::..ProcessCmdKey(Message%, Keys).)
Public methodSelectText
Scrolls into view and selects the text match.
Public methodZoomTo
Zoom to the given center point, using the specified zoom factor.
Public methodZoomToRectangle
Zoom to a given rectangle.
Public methodZoomToWidth
Zoom to make the width of the document fit exactly in the reader window.

Properties

  NameDescription
Public propertyActionHandler
This ActionHandler is responsible for executing actions that triggered by this viewer.
Public propertyAnnotationInteractorFactory
The annotation interactor factory. This factory will be used to create annotation interactors when a page becomes visible.
Public propertyCaretBlinkTime
The blink time of the caret, in milliseconds.
Public propertyCursorPosition
The current position of the cursor, with respect to the viewer.
Public propertyDocument
The PDF document that holds the pages that are displayed by this control.
Public propertyDocumentInteractor
The document interactor of the document viewer.
Public propertyDocumentInteractorFactory
The document interactor factory. This factory will be used to create a document interactor when opening a document.
Public propertyDocumentToClientTransform
Returns a transformation that transforms coordinates from document space to client space. If no document is present, the identity transformation will be returned.
Public propertyFocusAnnotation
The annotation that currently has the input focus. If this property is null, no annotation has the focus (but another interactor may have).
Public propertyFocusInteractor
The interactor that currently has the input focus. If this property is null, no interactor has the focus.
Public propertyHideHorizontalScrollbar
Hide the horizontal scrollbar.
Public propertyHideVerticalScrollbar
Hide the vertical scrollbar.
Public propertyHorizontalAlignment
Horizontal alignment of the document rectangle inside the viewer window.
Public propertyHoverCursor
The cursor that is shown when the mouse hovers over the viewer.
Public propertyHoverInteractor
The interactor that the mouse is over. If null, the mouse is not hovering over an interactor.
Public propertyIsPainting
True while the viewer still has painting operations queued (due to progressive drawing for example).
Public propertyLayoutManager
The layout manager determines the layout of all (page) interactors of the document.
Public propertyMaxZoom
The maximum zoom factor. The zoom factor will never be greater than this value.
Public propertyMinZoom
The minimum zoom factor. The zoom factor will never be smaller than this value.
Public propertyPageInteractorFactory
The page interactor factory. This factory will be used to create a page interactors when they come into view.
Public propertyPageSelection
The selection of pages that is shown. Only pages that exist in the document are shown. If null, all pages are shown.
Public propertyRenderSettings
The render settings of the viewer.
Public propertySelection
The current collection of selected interactors.
Public propertyVerticalAlignment
Vertical alignment of the document rectangle inside the viewer window.
Public propertyViewerSettings
The viewer settings.
Public propertyVisibleHeight
The height of the visible rectangle in document space.
Public propertyVisibleLeft
The horizontal position of the left edge of the visible rectangle in document space.
Public propertyVisibleTop
The vertical position of the top edge of the visible rectangle in document space.
Public propertyVisibleWidth
The width of the visible rectangle in document space.
Public propertyZoomFactor
Get or set the zoom factor. A zoom factor of one means that a point (1/72 inch) corresponds to 1 pixel. In other words, the PDF is displayed at a resolution of 72 DPI.

Events

  NameDescription
Public eventAnnotationInteractorCreated
Fired after an interactor has been created for an annotation.
Public eventDocumentInteractorCreated
Fired after an interactor has been created for a document.
Public eventFocusChanged
Raised after the focus has changed.
Public eventHoverChanged
Raised when the mouse starts hovering over a different interactor.
Public eventMessage
Raised when a non-fatal event happens that needs reporting.
Public eventMissingPage
Raised when the viewer wants to show a particular page that is not in the current page selection.
Public eventPageInteractorCreated
Fired after an interactor has been created for a page.
Public eventPreviewDragDrop
DragDrop preview event.
Public eventPreviewDragOver
DragOver preview event.
Public eventPreviewMouseDown
MouseDown preview event.
Public eventPreviewMouseMove
MouseMove preview event.
Public eventPreviewMouseUp
MouseUp preview event.
Public eventUnhandledException
Raised when an exception occurs that is not handled by the library at a point that is not invoked by user code (e.g. during an OnPaint event).
Public eventVisibleRectangleChanged
Raised after the VisibleRectangle has changed.
Public eventZoomFactorChanged
Raised after the ZoomFactor has changed. You typically handle this event to update the UI of your reader, such as e.g. a tool bar.

See Also