The PagesViewer type exposes the following members.

Constructors

  NameDescription
Public methodPagesViewer
Creates a new PagesViewer with a default action handler.

Methods

  NameDescription
Public methodBeginUpdate
Call this method in pairs with EndUpdate. In between these calls, the control is not updated.
(Inherited from DocumentViewer.)
Protected methodDispose
Closes and Disposes the pagesviewer.
(Overrides DocumentViewer..::..Dispose(Boolean).)
Public methodEndUpdate
Call this method in pairs with BeginUpdate. In between these calls, the control is not updated.
(Inherited from DocumentViewer.)
Public methodEnsureVisible
Scroll the given rectangle into view.
(Inherited from DocumentViewer.)
Public methodFindPage
Find the page at a given position.
(Inherited from DocumentViewer.)
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.
(Inherited from DocumentViewer.)
Public methodGoToDestination
Navigate to the given destination.
(Inherited from DocumentViewer.)
Public methodGoToNextPage
Navigate to the next page.
Public methodGoToPreviousPage
Navigate to the previous page. Also see GoToNextPage.
Protected methodOnClose
Invoked just before a document gets closed.
(Overrides DocumentViewer..::..OnClose(EventArgs).)
Protected methodOnCurrentPageChanged
Invoked when the current page changes.
Protected methodOnDragDrop
Raises the DragDrop event and dispatches the event to the interactor that the mouse is over.
(Inherited from DocumentViewer.)
Protected methodOnDragEnter
Raises the DragEnter event and prepares the document viewer for dragging.
(Inherited from DocumentViewer.)
Protected methodOnDragLeave
Raises the DragLeave event.
(Inherited from DocumentViewer.)
Protected methodOnDragOver
Raises the DragOver event and dispatches the event to the interactor that the mouse is over.
(Inherited from DocumentViewer.)
Protected methodOnGotFocus
Invoked after the DocumentViewer control got the focus.
(Inherited from DocumentViewer.)
Protected methodOnKeyDown
This override will handle page-up and page-down keys if not already done so by the base class. It will increase or decrease the current page depending on the key that was pressed.
(Overrides DocumentViewer..::..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.
(Inherited from DocumentViewer.)
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.
(Inherited from DocumentViewer.)
Public methodOnMissingPage (Inherited from DocumentViewer.)
Protected methodOnMouseDown
Raises the System.Windows.Forms.Control.MouseDown event.
(Inherited from DocumentViewer.)
Protected methodOnMouseMove
Raises the System.Windows.Forms.Control.MouseMove event.
(Inherited from DocumentViewer.)
Protected methodOnMouseUp
Raises the System.Windows.Forms.Control.MouseUp event.
(Inherited from DocumentViewer.)
Protected methodOnMouseWheel
This override implements scrolling through pages.
(Overrides DocumentViewer..::..OnMouseWheel(MouseEventArgs).)
Protected methodOnOpen
Invoked after a document got opened.
(Overrides DocumentViewer..::..OnOpen(EventArgs).)
Protected methodOnPaint
Raises the System.Windows.Forms.Paint event.
(Inherited from DocumentViewer.)
Protected methodOnVisibleRectangleChanged
This method will be invoked when a different part of the document becomes visible. This override will do the following if this means that another page becoms the current one:
  • Execute the javascript close action for the old current page.
  • Raise the CurrentPageChanged event.
  • Execute the javascript open action for the new current page.
(Overrides DocumentViewer..::..OnVisibleRectangleChanged(EventArgs).)
Protected methodOnZoomFactorChanged
Invoked when the zoom factor of the document viewer changes.
(Inherited from DocumentViewer.)
Public methodPrint
Print the document shown in this pages viewer with a print dialog.
Protected methodProcessCmdKey (Inherited from DocumentViewer.)
Public methodSelectText
Scrolls into view and selects the text match.
(Inherited from DocumentViewer.)
Public methodZoomTo
Zoom to the given center point, using the specified zoom factor.
(Inherited from DocumentViewer.)
Public methodZoomToFitPage
Change the zoom factor so that the current entire page fits exactly.
Public methodZoomToRectangle
Zoom to a given rectangle.
(Inherited from DocumentViewer.)
Public methodZoomToWidth
Zoom to make the width of the document fit exactly in the reader window.
(Inherited from DocumentViewer.)

Properties

  NameDescription
Public propertyActionHandler
This ActionHandler is responsible for executing actions that triggered by this viewer.
(Inherited from DocumentViewer.)
Public propertyCurrentPageIndex
The zero-based index of the current page. By default, the current page is defined as the first page that intersects with the visible rectangle. When setting the CurrentPage, the upper-left corner of the page will be aligned with the upper-left corner of the viewer. The current zoom factor will be used.
Public propertyCursorPosition
The current position of the cursor, with respect to the viewer.
(Inherited from DocumentViewer.)
Public propertyDocument
The PDF document that holds the pages that are displayed by this control.
(Inherited from DocumentViewer.)
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.
(Inherited from DocumentViewer.)
Public propertyHideHorizontalScrollbar
Hide the horizontal scrollbar.
(Inherited from DocumentViewer.)
Public propertyHideVerticalScrollbar
Hide the vertical scrollbar.
(Inherited from DocumentViewer.)
Public propertyHorizontalAlignment
Horizontal alignment of the document rectangle inside the viewer window.
(Inherited from DocumentViewer.)
Public propertyHoverCursor
The cursor that is shown when the mouse hovers over the viewer.
(Inherited from DocumentViewer.)
Public propertyIsPainting
True while the viewer still has painting operations queued (due to progressive drawing for example).
(Inherited from DocumentViewer.)
Public propertyLayoutManager
The layout manager determines the layout of all (page) interactors of the document.
(Inherited from DocumentViewer.)
Public propertyMaxZoom
The maximum zoom factor. The zoom factor will never be greater than this value.
(Inherited from DocumentViewer.)
Public propertyMinZoom
The minimum zoom factor. The zoom factor will never be smaller than this value.
(Inherited from DocumentViewer.)
Public propertyPageSelection
The selection of pages that is shown. Only pages that exist in the document are shown. If null, all pages are shown.
(Inherited from DocumentViewer.)
Public propertyRenderSettings
The render settings of the viewer.
(Inherited from DocumentViewer.)
Public propertyVerticalAlignment
Vertical alignment of the document rectangle inside the viewer window.
(Inherited from DocumentViewer.)
Public propertyViewerSettings
The viewer settings.
(Inherited from DocumentViewer.)
Public propertyVisibleHeight
The height of the visible rectangle in document space.
(Inherited from DocumentViewer.)
Public propertyVisibleLeft
The horizontal position of the left edge of the visible rectangle in document space.
(Inherited from DocumentViewer.)
Public propertyVisibleTop
The vertical position of the top edge of the visible rectangle in document space.
(Inherited from DocumentViewer.)
Public propertyVisibleWidth
The width of the visible rectangle in document space.
(Inherited from DocumentViewer.)
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.
(Inherited from DocumentViewer.)

Events

  NameDescription
Public eventCurrentPageChanged
Raised after the CurrentPage has changed.
Public eventMessage
Raised when a non-fatal event happens that needs reporting.
(Inherited from DocumentViewer.)
Public eventMissingPage
Raised when the viewer wants to show a particular page that is not in the current page selection.
(Inherited from DocumentViewer.)
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).
(Inherited from DocumentViewer.)
Public eventVisibleRectangleChanged
Raised after the VisibleRectangle has changed.
(Inherited from DocumentViewer.)
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.
(Inherited from DocumentViewer.)

See Also