Click or drag to resize

CPDFViewer Class

Core display control
Inheritance Hierarchy

Namespace:  ComPDFKitViewer
Assembly:  ComPDFKit.Viewer (in ComPDFKit.Viewer.dll) Version: 2.2.0.0 (2.2.0.0)
Syntax
C#
public class CPDFViewer : FrameworkElement, IScrollInfo

The CPDFViewer type exposes the following members.

Constructors
  NameDescription
Public methodCPDFViewer
Constructor
Top
Properties
  NameDescription
Public propertyCanHorizontallyScroll
Gets or sets a value that indicates whether scrolling on the horizontal axis is possible.
Public propertyCanVerticallyScroll
Gets or sets a value that indicates whether scrolling on the vertical axis is possible.
Public propertyCurrentRenderFrame
Current rendering data
Public propertyExtentHeight
Gets the vertical size of the extent.
Public propertyExtentWidth
Gets the horizontal size of the extent.
Public propertyHorizontalOffset
Gets the horizontal offset of the scrolled content.
Public propertyIsHideFormShow
In Viewer, Pan mode
Public propertyIsRendering
In the rendering process, Shouldn't Magnificat PDF
Public propertyStatic memberPageImageScale
PDF page image scale ratio.
Public propertyScrollOwner
Gets or sets a ScrollViewer element that controls scrolling behavior.
Public propertyScrollStride
Public propertyStatic memberStickyIconDict
Customize icon path data
Public propertyUndoManager
Current UndoManager object
Public propertyVerticalOffset
Gets the vertical offset of the scrolled content.
Public propertyViewportHeight
Gets the vertical size of the viewport for this content.
Public propertyViewportWidth
Gets the horizontal size of the viewport for this content.
Top
Methods
  NameDescription
Public methodAnnotHitTest
Get the annotation at the current mouse position
Public methodCloseDocument
Close the current document (does not include save logic)
Public methodDispose
Dispose, release resources
Public methodEnableZoom
Set the background color of the PDF (effective in DrawModes.Custom mode)
Public methodGetAnnotForIndex
Get the annotation at the specified position
Public methodGetAnnotViewTag
Get the current default annotation layer identifier
Public methodGetBackgroundTag
Get the current default background layer identifier
Public methodGetCurrentRenderPageForIndex
Get the page data corresponding to the specified page index
Public methodGetDocument
Get the data layer object set by the current PDFViewer
Public methodGetDrawModes
Get the drawing mode of the PDF
Public methodGetePointToPage
Convert the current click position to the position in the page (related to the current DPI)
Public methodGetFitMode
Get the fill mode of the view
Public methodGetFormFieldHighlight
Get the current form highlight status
Public methodGetIsCrop
Get the current cropping status
Public methodGetIsShowStampMouse
Get whether the custom mouse is enabled for stamp creation
Public methodGetLinkHighlight
Get the current link highlight status
Public methodGetMaxViewIndex
Get the total number of layers currently added
Public methodGetMousePointToPage
Get the current mouse position in the PDFViewer, if not, it is -1
Public methodGetPageNodeByPageIndex
Get the original data information of the specified index of the PDF document
Public methodGetPDFBackground
Set the background color of the PDF (effective in DrawModes.Custom mode)
Public methodGetPointPageInfo
Get the PDF page number corresponding to the current point, and the drawing range of the corresponding page
Public methodGetRenderSpaces
Get the spacing between pages
Public methodGetStampRect
Get the current stamp position
Public methodGetView
Get the layer object at the specified position
Public methodGetViewForTag
Get the layer object with the specified Tag
Public methodGetViewIndexForLayer
Get the current object corresponding to the drawing layer.
Public methodGetViewMode
Get the display mode of the view
Public methodGetZoom
Get the current zoom ratio
Public methodGoToPage
Go to the specified page and position
Public methodInitDoc
Set the document and set the data layer object to PDFViewer
Public methodInsertView
Insert a new layer at the specified position
Public methodIsVisibilityMouse
Switch the visibility of the custom mouse without adjusting the previously cached mouse style settings
Public methodLineDown
Scrolls down within content by one logical unit.
Public methodLineLeft
Scrolls left within content by one logical unit.
Public methodLineRight
Scrolls right within content by one logical unit.
Public methodLineUp
Scrolls up within content by one logical unit.
Public methodMakeVisible
Forces content to scroll until the coordinate space of a Visual object is visible.
Public methodMouseWheelDown
Scrolls down within content after a user clicks the wheel button on a mouse.
Public methodMouseWheelLeft
Scrolls left within content after a user clicks the wheel button on a mouse.
Public methodMouseWheelRight
Scrolls right within content after a user clicks the wheel button on a mouse.
Public methodMouseWheelUp
Scrolls up within content after a user clicks the wheel button on a mouse.
Public methodPageDown
Shortcut key, turn down
Public methodPageLeft
Shortcut key, turn left
Public methodPageRight
Shortcut key, turn right
Public methodPageUp
Shortcut key, turn up
Public methodRemoveView
Remove the specified layer.
Public methodRemoveViewOfIndex
Remove the specified position of the layer.
Public methodSetCacheEditPage
Get whether to cache content editing objects when rendering data
Public methodSetCustomMousePoint
Apply mouse position
Public methodSetCustomMouseStyle
Set custom mouse style
Public methodSetDrawModes
Set the drawing mode of the PDF
Public methodSetFitMode
Set the fill mode of the view
Public methodSetFormFieldHighlight
Whether to highlight the form
Public methodSetHorizontalOffset
Sets the amount of horizontal offset.
Public methodSetIsCrop
Whether to enable cropping
Public methodSetIsHideAnnotForType
Set the annotation type to be hidden.
Public methodSetIsShowAnnot
Set whether to display the annotation.
Public methodSetIsShowStampMouse
Set whether the custom mouse is enabled for stamp creation
Public methodSetIsShowWidget
Set whether to display Widget.
Public methodSetIsVisibleCustomMouse
Set whether to apply custom mouse
Public methodSetKeepDefaultPopupTag
Whether to keep the default pop-up tag
Public methodSetLinkHighlight
Set whether to highlight the link
Public methodSetMouseImageMaxSize
Public methodSetPDFBackground
Set the background color of the PDF (effective in DrawModes.Custom mode)
Public methodSetRenderBackground
Set the background color of PDFViewer
Public methodSetRenderSpaces
Set the spacing between pages
Public methodSetStampMouseImage(String)
Set custom mouse style applied to stamp creation (the image is larger than the set maximum size, and the clarity will be lost)
Public methodSetStampMouseImage(Byte, Int32, Int32)
Set custom mouse style (will not lose clarity, low performance)
Public methodSetStickyNotePop
Set sticky note pop-up control
Public methodSetVerticalOffset
Sets the amount of vertical offset.
Public methodSetViewMode
Set the display mode of the view
Public methodSetZoom
Set the current zoom ratio (effective in FitMode.FitZoom mode)
Public methodStartDraw
Draw the content (once).
Public methodStartDrawAnnot
Only draw the annotation layer (once).
Public methodUpdateAnnotFrame
Reload the current annotation rendering data
Public methodUpdateRenderFrame
Render the current page data again
Public methodUpdateVirtualNodes
Reload the current data (not only the part used for rendering, call this method when the data layer page information is modified, such as page rotation, deletion)
Public methodVisibilityCustomMouse
Switch the visibility of the custom mouse
Top
Events
  NameDescription
Public eventDrawChanged
Draw completed event notification
Public eventMouseWheelZoomHandler
Mouse wheel event
Public eventOnRenderFinish
Top
See Also