The DocumentViewer type exposes the following members.

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 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 methodOnClose
Invoked just before a document will be closed.
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 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 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.

See Also