The PagesViewer type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| PagesViewer |
Creates a new PagesViewer with a default action handler.
|
Methods
| Name | Description | |
|---|---|---|
| BeginUpdate |
Call this method in pairs with EndUpdate. In between these calls, the control is not updated.
(Inherited from DocumentViewer.) | |
| Dispose |
Closes and Disposes the pagesviewer.
(Overrides DocumentViewer..::..Dispose(Boolean).) | |
| EndUpdate |
Call this method in pairs with BeginUpdate. In between these calls, the control is not updated.
(Inherited from DocumentViewer.) | |
| EnsureVisible |
Scroll the given rectangle into view.
(Inherited from DocumentViewer.) | |
| FindPage |
Find the page at a given position.
(Inherited from DocumentViewer.) | |
| GetPageToDocumentTransform |
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.) | |
| GoToDestination |
Navigate to the given destination.
(Inherited from DocumentViewer.) | |
| GoToNextPage |
Navigate to the next page.
| |
| GoToPreviousPage |
Navigate to the previous page. Also see GoToNextPage.
| |
| OnClose |
Invoked just before a document gets closed.
(Overrides DocumentViewer..::..OnClose(EventArgs).) | |
| OnCurrentPageChanged |
Invoked when the current page changes.
| |
| OnDragDrop |
Raises the DragDrop event and dispatches the event to the interactor that the
mouse is over.
(Inherited from DocumentViewer.) | |
| OnDragEnter |
Raises the DragEnter event and prepares the document viewer for
dragging.
(Inherited from DocumentViewer.) | |
| OnDragLeave |
Raises the DragLeave event.
(Inherited from DocumentViewer.) | |
| OnDragOver |
Raises the DragOver event and dispatches the event to the interactor that the
mouse is over.
(Inherited from DocumentViewer.) | |
| OnGotFocus |
Invoked after the DocumentViewer control got the focus.
(Inherited from DocumentViewer.) | |
| OnKeyDown |
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).) | |
| OnKeyPress |
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.) | |
| OnKeyUp |
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.) | |
| OnMissingPage | (Inherited from DocumentViewer.) | |
| OnMouseDown |
Raises the System.Windows.Forms.Control.MouseDown event.
(Inherited from DocumentViewer.) | |
| OnMouseMove |
Raises the System.Windows.Forms.Control.MouseMove event.
(Inherited from DocumentViewer.) | |
| OnMouseUp |
Raises the System.Windows.Forms.Control.MouseUp event.
(Inherited from DocumentViewer.) | |
| OnMouseWheel |
This override implements scrolling through pages.
(Overrides DocumentViewer..::..OnMouseWheel(MouseEventArgs).) | |
| OnOpen |
Invoked after a document got opened.
(Overrides DocumentViewer..::..OnOpen(EventArgs).) | |
| OnPaint |
Raises the System.Windows.Forms.Paint event.
(Inherited from DocumentViewer.) | |
| OnVisibleRectangleChanged |
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:
(Overrides DocumentViewer..::..OnVisibleRectangleChanged(EventArgs).)
| |
| OnZoomFactorChanged |
Invoked when the zoom factor of the document viewer changes.
(Inherited from DocumentViewer.) | |
Print the document shown in this pages viewer with a print dialog.
| ||
| ProcessCmdKey | (Inherited from DocumentViewer.) | |
| SelectText |
Scrolls into view and selects the text match.
(Inherited from DocumentViewer.) | |
| ZoomTo |
Zoom to the given center point, using the specified zoom factor.
(Inherited from DocumentViewer.) | |
| ZoomToFitPage |
Change the zoom factor so that the current entire page fits exactly.
| |
| ZoomToRectangle |
Zoom to a given rectangle.
(Inherited from DocumentViewer.) | |
| ZoomToWidth |
Zoom to make the width of the document fit exactly in the reader window.
(Inherited from DocumentViewer.) |
Properties
| Name | Description | |
|---|---|---|
| ActionHandler |
This ActionHandler is responsible for executing actions that triggered
by this viewer.
(Inherited from DocumentViewer.) | |
| CurrentPageIndex |
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.
| |
| CursorPosition |
The current position of the cursor, with respect to the viewer.
(Inherited from DocumentViewer.) | |
| Document |
The PDF document that holds the pages that are displayed by this control.
(Inherited from DocumentViewer.) | |
| DocumentToClientTransform |
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.) | |
| HideHorizontalScrollbar |
Hide the horizontal scrollbar.
(Inherited from DocumentViewer.) | |
| HideVerticalScrollbar |
Hide the vertical scrollbar.
(Inherited from DocumentViewer.) | |
| HorizontalAlignment |
Horizontal alignment of the document rectangle inside the viewer window.
(Inherited from DocumentViewer.) | |
| HoverCursor |
The cursor that is shown when the mouse hovers over the viewer.
(Inherited from DocumentViewer.) | |
| IsPainting |
True while the viewer still has painting operations queued (due to
progressive drawing for example).
(Inherited from DocumentViewer.) | |
| LayoutManager |
The layout manager determines the layout of all (page) interactors of the
document.
(Inherited from DocumentViewer.) | |
| MaxZoom |
The maximum zoom factor. The zoom factor will never be greater than this value.
(Inherited from DocumentViewer.) | |
| MinZoom |
The minimum zoom factor. The zoom factor will never be smaller than this value.
(Inherited from DocumentViewer.) | |
| PageSelection |
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.) | |
| RenderSettings |
The render settings of the viewer.
(Inherited from DocumentViewer.) | |
| VerticalAlignment |
Vertical alignment of the document rectangle inside the viewer window.
(Inherited from DocumentViewer.) | |
| ViewerSettings |
The viewer settings.
(Inherited from DocumentViewer.) | |
| VisibleHeight |
The height of the visible rectangle in document space.
(Inherited from DocumentViewer.) | |
| VisibleLeft |
The horizontal position of the left edge of the visible rectangle in document space.
(Inherited from DocumentViewer.) | |
| VisibleTop |
The vertical position of the top edge of the visible rectangle in document space.
(Inherited from DocumentViewer.) | |
| VisibleWidth |
The width of the visible rectangle in document space.
(Inherited from DocumentViewer.) | |
| ZoomFactor |
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
| Name | Description | |
|---|---|---|
| CurrentPageChanged |
Raised after the CurrentPage has changed.
| |
| Message |
Raised when a non-fatal event happens that needs reporting.
(Inherited from DocumentViewer.) | |
| MissingPage |
Raised when the viewer wants to show a particular page that is not in the current page
selection.
(Inherited from DocumentViewer.) | |
| UnhandledException |
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.) | |
| VisibleRectangleChanged |
Raised after the VisibleRectangle has changed.
(Inherited from DocumentViewer.) | |
| ZoomFactorChanged |
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.) |