CPDFViewer Class |
Namespace: ComPDFKitViewer
public class CPDFViewer : FrameworkElement, IScrollInfo
The CPDFViewer type exposes the following members.
| Name | Description | |
|---|---|---|
| CPDFViewer |
Constructor
|
| Name | Description | |
|---|---|---|
| CanHorizontallyScroll | Gets or sets a value that indicates whether scrolling on the horizontal axis is possible. | |
| CanVerticallyScroll | Gets or sets a value that indicates whether scrolling on the vertical axis is possible. | |
| CurrentRenderFrame |
Current rendering data
| |
| ExtentHeight | Gets the vertical size of the extent. | |
| ExtentWidth | Gets the horizontal size of the extent. | |
| HorizontalOffset | Gets the horizontal offset of the scrolled content. | |
| IsHideFormShow |
In Viewer, Pan mode
| |
| IsRendering |
In the rendering process,
Shouldn't Magnificat PDF
| |
| PageImageScale |
PDF page image scale ratio.
| |
| ScrollOwner | Gets or sets a ScrollViewer element that controls scrolling behavior. | |
| ScrollStride | ||
| StickyIconDict |
Customize icon path data
| |
| UndoManager |
Current UndoManager object
| |
| VerticalOffset | Gets the vertical offset of the scrolled content. | |
| ViewportHeight | Gets the vertical size of the viewport for this content. | |
| ViewportWidth | Gets the horizontal size of the viewport for this content. |
| Name | Description | |
|---|---|---|
| AnnotHitTest |
Get the annotation at the current mouse position
| |
| CloseDocument |
Close the current document (does not include save logic)
| |
| Dispose |
Dispose, release resources
| |
| EnableZoom |
Set the background color of the PDF (effective in DrawModes.Custom mode)
| |
| GetAnnotForIndex |
Get the annotation at the specified position
| |
| GetAnnotViewTag |
Get the current default annotation layer identifier
| |
| GetBackgroundTag |
Get the current default background layer identifier
| |
| GetCurrentRenderPageForIndex |
Get the page data corresponding to the specified page index
| |
| GetDocument |
Get the data layer object set by the current PDFViewer
| |
| GetDrawModes |
Get the drawing mode of the PDF
| |
| GetePointToPage |
Convert the current click position to the position in the page (related to the current DPI)
| |
| GetFitMode |
Get the fill mode of the view
| |
| GetFormFieldHighlight |
Get the current form highlight status
| |
| GetIsCrop |
Get the current cropping status
| |
| GetIsShowStampMouse |
Get whether the custom mouse is enabled for stamp creation
| |
| GetLinkHighlight |
Get the current link highlight status
| |
| GetMaxViewIndex |
Get the total number of layers currently added
| |
| GetMousePointToPage |
Get the current mouse position in the PDFViewer, if not, it is -1
| |
| GetPageNodeByPageIndex |
Get the original data information of the specified index of the PDF document
| |
| GetPDFBackground |
Set the background color of the PDF (effective in DrawModes.Custom mode)
| |
| GetPointPageInfo |
Get the PDF page number corresponding to the current point, and the drawing range of the corresponding page
| |
| GetRenderSpaces |
Get the spacing between pages
| |
| GetStampRect |
Get the current stamp position
| |
| GetView |
Get the layer object at the specified position
| |
| GetViewForTag |
Get the layer object with the specified Tag
| |
| GetViewIndexForLayer |
Get the current object corresponding to the drawing layer.
| |
| GetViewMode |
Get the display mode of the view
| |
| GetZoom |
Get the current zoom ratio
| |
| GoToPage |
Go to the specified page and position
| |
| InitDoc |
Set the document and set the data layer object to PDFViewer
| |
| InsertView |
Insert a new layer at the specified position
| |
| IsVisibilityMouse |
Switch the visibility of the custom mouse without adjusting the previously cached mouse style settings
| |
| LineDown | Scrolls down within content by one logical unit. | |
| LineLeft | Scrolls left within content by one logical unit. | |
| LineRight | Scrolls right within content by one logical unit. | |
| LineUp | Scrolls up within content by one logical unit. | |
| MakeVisible | Forces content to scroll until the coordinate space of a Visual object is visible. | |
| MouseWheelDown | Scrolls down within content after a user clicks the wheel button on a mouse. | |
| MouseWheelLeft | Scrolls left within content after a user clicks the wheel button on a mouse. | |
| MouseWheelRight | Scrolls right within content after a user clicks the wheel button on a mouse. | |
| MouseWheelUp | Scrolls up within content after a user clicks the wheel button on a mouse. | |
| PageDown |
Shortcut key, turn down
| |
| PageLeft |
Shortcut key, turn left
| |
| PageRight |
Shortcut key, turn right
| |
| PageUp |
Shortcut key, turn up
| |
| RemoveView |
Remove the specified layer.
| |
| RemoveViewOfIndex |
Remove the specified position of the layer.
| |
| SetCacheEditPage |
Get whether to cache content editing objects when rendering data
| |
| SetCustomMousePoint |
Apply mouse position
| |
| SetCustomMouseStyle |
Set custom mouse style
| |
| SetDrawModes |
Set the drawing mode of the PDF
| |
| SetFitMode |
Set the fill mode of the view
| |
| SetFormFieldHighlight |
Whether to highlight the form
| |
| SetHorizontalOffset | Sets the amount of horizontal offset. | |
| SetIsCrop |
Whether to enable cropping
| |
| SetIsHideAnnotForType |
Set the annotation type to be hidden.
| |
| SetIsShowAnnot |
Set whether to display the annotation.
| |
| SetIsShowStampMouse |
Set whether the custom mouse is enabled for stamp creation
| |
| SetIsShowWidget |
Set whether to display Widget.
| |
| SetIsVisibleCustomMouse |
Set whether to apply custom mouse
| |
| SetKeepDefaultPopupTag |
Whether to keep the default pop-up tag
| |
| SetLinkHighlight |
Set whether to highlight the link
| |
| SetMouseImageMaxSize | ||
| SetPDFBackground |
Set the background color of the PDF (effective in DrawModes.Custom mode)
| |
| SetRenderBackground |
Set the background color of PDFViewer
| |
| SetRenderSpaces |
Set the spacing between pages
| |
| SetStampMouseImage(String) |
Set custom mouse style applied to stamp creation (the image is larger than the set maximum size, and the clarity will be lost)
| |
| SetStampMouseImage(Byte, Int32, Int32) |
Set custom mouse style (will not lose clarity, low performance)
| |
| SetStickyNotePop |
Set sticky note pop-up control
| |
| SetVerticalOffset | Sets the amount of vertical offset. | |
| SetViewMode |
Set the display mode of the view
| |
| SetZoom |
Set the current zoom ratio (effective in FitMode.FitZoom mode)
| |
| StartDraw |
Draw the content (once).
| |
| StartDrawAnnot |
Only draw the annotation layer (once).
| |
| UpdateAnnotFrame |
Reload the current annotation rendering data
| |
| UpdateRenderFrame |
Render the current page data again
| |
| UpdateVirtualNodes |
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)
| |
| VisibilityCustomMouse |
Switch the visibility of the custom mouse
|
| Name | Description | |
|---|---|---|
| DrawChanged |
Draw completed event notification
| |
| MouseWheelZoomHandler |
Mouse wheel event
| |
| OnRenderFinish |