Class PdfViewerControl
PDF Viewer WPF lets users load, view, review, and print PDF files with support for searching and copying text, silent and batch printing, conversion, and more.
Inheritance
Namespace: Syncfusion.Windows.PdfViewer
Assembly: Syncfusion.PdfViewer.WPF.dll
Syntax
public class PdfViewerControl : Control
Constructors
PdfViewerControl()
Initializes a new instance of the PdfViewerControl class.
Declaration
public PdfViewerControl()
Fields
AnnotationCommandParameterProperty
Identifies the AnnotationCommandParameter.
Declaration
public static readonly DependencyProperty AnnotationCommandParameterProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
AnnotationCommandProperty
Identifies the AnnotationCommand.
Declaration
public static readonly DependencyProperty AnnotationCommandProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CurrentPageIndexProperty
Declaration
public static readonly DependencyProperty CurrentPageIndexProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CurrentPageProperty
Declaration
public static readonly DependencyProperty CurrentPageProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
DecreaseZoomCommandParameterProperty
Identifies the DecreaseZoomCommandParameter.
Declaration
public static readonly DependencyProperty DecreaseZoomCommandParameterProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
DecreaseZoomCommandProperty
Identifies the DecreaseZoomCommand.
Declaration
public static readonly DependencyProperty DecreaseZoomCommandProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
EnableLayersProperty
Identifies the Syncfusion.Windows.PdfViewer.EnableLayers dependency property.
Declaration
public static readonly DependencyProperty EnableLayersProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
EnableRedactionToolProperty
Identifies the EnableRedactionTool dependency property.
Declaration
public static readonly DependencyProperty EnableRedactionToolProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
FirstPageCommandParameterProperty
Identifies the FirstPageCommandParameter.
Declaration
public static readonly DependencyProperty FirstPageCommandParameterProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
FirstPageCommandProperty
Identifies the FirstPageCommand.
Declaration
public static readonly DependencyProperty FirstPageCommandProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
GoToPageCommandParameterProperty
Identifies the GoToPageCommandParameter.
Declaration
public static readonly DependencyProperty GoToPageCommandParameterProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
GoToPageCommandProperty
Identifies the GoToPageCommand.
Declaration
public static readonly DependencyProperty GoToPageCommandProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IncreaseZoomCommandParameterProperty
Identifies the IncreaseZoomCommandParameter.
Declaration
public static readonly DependencyProperty IncreaseZoomCommandParameterProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IncreaseZoomCommandProperty
Identifies the IncreaseZoomCommand.
Declaration
public static readonly DependencyProperty IncreaseZoomCommandProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsBookmarkEnabledProperty
Identifies the Syncfusion.Windows.PdfViewer.IsBookmarkEnabled dependency property.
Declaration
public static readonly DependencyProperty IsBookmarkEnabledProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsDocumentEditedProperty
Identifies theIsDocumentEdited dependency property.
Declaration
public static readonly DependencyProperty IsDocumentEditedProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Remarks
The value will be true when the document is edited by adding, editing annotations or re-organizing the pages or editing form fields.
ItemSourceProperty
Declaration
public static readonly DependencyProperty ItemSourceProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
LastPageCommandParameterProperty
Identifies the LastPageCommandParameter.
Declaration
public static readonly DependencyProperty LastPageCommandParameterProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
LastPageCommandProperty
Identifies the LastPageCommand.
Declaration
public static readonly DependencyProperty LastPageCommandProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
NextPageCommandParameterProperty
Identifies the NextPageCommandParameter.
Declaration
public static readonly DependencyProperty NextPageCommandParameterProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
NextPageCommandProperty
Identifies the NextPageCommand.
Declaration
public static readonly DependencyProperty NextPageCommandProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
PageCountProperty
Declaration
public static readonly DependencyProperty PageCountProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
PreviousPageCommandParameterProperty
Identifies the PreviousPageCommandParameter.
Declaration
public static readonly DependencyProperty PreviousPageCommandParameterProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
PreviousPageCommandProperty
Identifies the PreviousPageCommand.
Declaration
public static readonly DependencyProperty PreviousPageCommandProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
PrintCommandParameterProperty
Identifies the PrintCommandParameter.
Declaration
public static readonly DependencyProperty PrintCommandParameterProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
PrintCommandProperty
Identifies the PrintCommand.
Declaration
public static readonly DependencyProperty PrintCommandProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
PrintDocumentProperty
Declaration
public static readonly DependencyProperty PrintDocumentProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SearchNextCommandParameterProperty
Identifies the SearchNextCommandParameter.
Declaration
public static readonly DependencyProperty SearchNextCommandParameterProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SearchNextCommandProperty
Identifies the SearchNextCommand.
Declaration
public static readonly DependencyProperty SearchNextCommandProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SearchPreviousCommandParameterProperty
Identifies the SearchPreviousCommandParameter.
Declaration
public static readonly DependencyProperty SearchPreviousCommandParameterProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SearchPreviousCommandProperty
Using a DependencyProperty as the backing store for ViewModeCommand.
Declaration
public static readonly DependencyProperty SearchPreviousCommandProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ShowToolbarProperty
Declaration
public static readonly DependencyProperty ShowToolbarProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
TextSelectionBrushColorProperty
Declaration
public static readonly DependencyProperty TextSelectionBrushColorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ZoomModeProperty
Declaration
public static readonly DependencyProperty ZoomModeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ZoomProperty
Declaration
public static readonly DependencyProperty ZoomProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
Annotation
Gets the collection of different types of annotations in PdfViewerControl
Declaration
public Annotation Annotation { get; }
Property Value
Type |
---|
Annotation |
AnnotationCommand
Gets or sets the value that represents Annotation command of PdfViewerControl.
Declaration
public ICommand AnnotationCommand { get; set; }
Property Value
Type |
---|
System.Windows.Input.ICommand |
AnnotationCommandParameter
Gets or Sets the AnnotationCommandParameter of PdfViewerControl
Declaration
public object AnnotationCommandParameter { get; set; }
Property Value
Type |
---|
System.Object |
AnnotationMode
Gets or Sets the annotation mode, by default this value is set to None.
Declaration
public PdfDocumentView.PdfViewerAnnotationMode AnnotationMode { get; set; }
Property Value
Type |
---|
PdfDocumentView.PdfViewerAnnotationMode |
ArrowAnnotationSettings
Gets or Sets the arrow shape settings.
Declaration
public PdfViewerArrowSettings ArrowAnnotationSettings { get; set; }
Property Value
Type |
---|
PdfViewerArrowSettings |
BookmarkSettings
Gets the bookmark settings.
Declaration
public BookmarkSettings BookmarkSettings { get; }
Property Value
Type |
---|
BookmarkSettings |
CircleAnnotationSettings
Get and Set the circle annotation settings
Declaration
public PdfViewerCircleSettings CircleAnnotationSettings { get; set; }
Property Value
Type |
---|
PdfViewerCircleSettings |
ClientRectangle
Gets the rectangle that represents the client area (viewport) of the control, without the non-client elements such as toolbars, side bars and scroll bars.
Declaration
public Rect ClientRectangle { get; }
Property Value
Type |
---|
System.Windows.Rect |
Remarks
The top-left value (X,Y) is determined with relative to the PdfViewerControl. The value of the top-left (X,Y) is (0,0) if there are no non-client elements present in the left and top of the control. If any non-client elements are present in the left or top of the control, their width and height values will be added respectively to the top-left (X,Y) value of the client rectangle.
CommentSettings
Gets the comment settings.
Declaration
public CommentSettings CommentSettings { get; }
Property Value
Type |
---|
CommentSettings |
CurrentPage
Get the current page number displayed in the PdfViewerControl
Declaration
public int CurrentPage { get; set; }
Property Value
Type |
---|
System.Int32 |
CurrentPageIndex
Get the index of the current page displayed in the PdfViewerControl
Declaration
public int CurrentPageIndex { get; }
Property Value
Type |
---|
System.Int32 |
CurrentUser
Get or set current user name of the PDFViewer.Default the current user will be system name.
Declaration
public string CurrentUser { get; set; }
Property Value
Type |
---|
System.String |
Cursor
Gets or sets the cursor that displays when the mouse pointer is over this element.
Declaration
public Cursor Cursor { get; set; }
Property Value
Type |
---|
System.Windows.Input.Cursor |
CursorMode
Gets or Sets the Cursor mode.
Declaration
public PdfViewerCursorMode CursorMode { get; set; }
Property Value
Type |
---|
PdfViewerCursorMode |
DecreaseZoomCommand
Gets or sets the value that represents Decrease Zoom command of PdfViewerControl.
Declaration
public ICommand DecreaseZoomCommand { get; set; }
Property Value
Type |
---|
System.Windows.Input.ICommand |
DecreaseZoomCommandParameter
Gets and Sets the command parameter for DecreaseZoomCommand.
Declaration
public object DecreaseZoomCommandParameter { get; set; }
Property Value
Type |
---|
System.Object |
DocumentInfo
Gets the information of the PDF document loaded
Declaration
public DocumentInfo DocumentInfo { get; }
Property Value
Type |
---|
DocumentInfo |
EnableLayers
Enables or disables the layer feature
Declaration
public bool EnableLayers { get; set; }
Property Value
Type |
---|
System.Boolean |
EnableNotificationBar
Enables the display of Notification bar on setting true.
Declaration
public bool EnableNotificationBar { get; set; }
Property Value
Type |
---|
System.Boolean |
EnableRedactionTool
Gets and sets the value to toggle the visibility of the redaction icon in the pane.
Declaration
public bool EnableRedactionTool { get; set; }
Property Value
Type |
---|
System.Boolean |
FirstPageCommand
Gets or sets the value that represents First Page command of PdfViewerControl.
Declaration
public ICommand FirstPageCommand { get; set; }
Property Value
Type |
---|
System.Windows.Input.ICommand |
FirstPageCommandParameter
Gets or Sets the FirstPageCommandParameter of PdfViewerControl
Declaration
public object FirstPageCommandParameter { get; set; }
Property Value
Type |
---|
System.Object |
FormSettings
Gets the settings for form.
Declaration
public FormSettings FormSettings { get; }
Property Value
Type |
---|
FormSettings |
FreeTextAnnotationSettings
Get and Set the freetext annotation settings
Declaration
public PdfViewerFreeTextSettings FreeTextAnnotationSettings { get; set; }
Property Value
Type |
---|
PdfViewerFreeTextSettings |
GoToPageCommand
Gets or sets the value that represents Go To Page command of PdfViewerControl.
Declaration
public ICommand GoToPageCommand { get; set; }
Property Value
Type |
---|
System.Windows.Input.ICommand |
GoToPageCommandParameter
Gets and Sets the command parameter for the GoToPageCommand.
Declaration
public object GoToPageCommandParameter { get; set; }
Property Value
Type |
---|
System.Object |
HandwrittenSignatureSettings
Gets and sets the settings for hand written signature.
Declaration
public HandwrittenSignatureSettings HandwrittenSignatureSettings { get; set; }
Property Value
Type |
---|
HandwrittenSignatureSettings |
HighlightAnnotationSettings
Get and Set the highlight annotation settings
Declaration
public PdfViewerHighlightSettings HighlightAnnotationSettings { get; set; }
Property Value
Type |
---|
PdfViewerHighlightSettings |
HorizontalOffset
Gets or sets the horizontal offset of the control that has been scrolled from the left of the document.
Declaration
public double HorizontalOffset { get; set; }
Property Value
Type |
---|
System.Double |
IncreaseZoomCommand
Gets or sets the value that represents Increase Zoom command of PdfViewerControl.
Declaration
public ICommand IncreaseZoomCommand { get; set; }
Property Value
Type |
---|
System.Windows.Input.ICommand |
IncreaseZoomCommandParameter
Gets or Sets the parameter for the IncreaseZoomCommand.
Declaration
public object IncreaseZoomCommandParameter { get; set; }
Property Value
Type |
---|
System.Object |
InkAnnotationSettings
Get and Set the ink annotation settings
Declaration
public PdfViewerInkSettings InkAnnotationSettings { get; set; }
Property Value
Type |
---|
PdfViewerInkSettings |
IsBookmarkEnabled
Gets or sets a value indicating whether bookmark is enabled in the user interface (UI). The default value is true.
Declaration
public bool IsBookmarkEnabled { get; set; }
Property Value
Type |
---|
System.Boolean |
IsDocumentEdited
Gets the value that indicates whether the document is edited by adding, editing annotations or re-organizing the pages or editing form fields.
Declaration
public bool IsDocumentEdited { get; }
Property Value
Type |
---|
System.Boolean |
IsTextSearchEnabled
Represents whether the text search for the document is enabled or not. Default value is true.
Declaration
public bool IsTextSearchEnabled { get; set; }
Property Value
Type |
---|
System.Boolean |
IsTextSelectionEnabled
Represents whether the text selection for the document is enabled or not.
Declaration
public bool IsTextSelectionEnabled { get; set; }
Property Value
Type |
---|
System.Boolean |
ItemSource
Enables the PdfViewerControl to load a document from XAML as string or stream.
Declaration
public object ItemSource { get; set; }
Property Value
Type |
---|
System.Object |
LastPageCommand
Gets or Sets the LastPageCommand of PdfViewerControl
Declaration
public ICommand LastPageCommand { get; set; }
Property Value
Type |
---|
System.Windows.Input.ICommand |
LastPageCommandParameter
Gets or Sets the LastPageCommandParameter of PdfViewerControl
Declaration
public object LastPageCommandParameter { get; set; }
Property Value
Type |
---|
System.Object |
Layers
Get the collection of layer from the PDF document.
Declaration
public LayerCollection Layers { get; }
Property Value
Type |
---|
LayerCollection |
LayersPaneSettings
Layers pane settings
Declaration
public LayersPaneSettings LayersPaneSettings { get; }
Property Value
Type |
---|
LayersPaneSettings |
LineAnnotationSettings
Get and Set the line annotation settings
Declaration
public PdfViewerLineSettings LineAnnotationSettings { get; set; }
Property Value
Type |
---|
PdfViewerLineSettings |
LoadedDocument
Gets the LoadedDocument of PdfViewerControl
Declaration
public PdfLoadedDocument LoadedDocument { get; }
Property Value
Type |
---|
PdfLoadedDocument |
LoadingIndicator
Gets or Sets the Loading Indicator
Declaration
public PdfLoadingIndicator LoadingIndicator { get; set; }
Property Value
Type |
---|
PdfLoadingIndicator |
MaximumZoomPercentage
Gets or sets the maximum zoom percentage of the PdfViewerControl. The default value is 400.
Declaration
public int MaximumZoomPercentage { get; set; }
Property Value
Type |
---|
System.Int32 |
Remarks
If the rendering engine is Pdfium, the value should be in between the value of MinimumZoomPercentage and 6400. If the rendering engine is SfPdf, the value should be in between the value of MinimumZoomPercentage and 800.
MinimumZoomPercentage
Gets or sets the minimum zoom percentage of the PdfViewerControl. The default value is 50.
Declaration
public int MinimumZoomPercentage { get; set; }
Property Value
Type |
---|
System.Int32 |
Remarks
The value should be in between 10 and the value of MaximumZoomPercentage.
NextPageCommand
Gets or sets the value that represents Next Page command of PdfViewerControl.
Declaration
public ICommand NextPageCommand { get; set; }
Property Value
Type |
---|
System.Windows.Input.ICommand |
NextPageCommandParameter
Gets and Sets the command paramter for NextPageCommand
Declaration
public object NextPageCommandParameter { get; set; }
Property Value
Type |
---|
System.Object |
PageBorder
Gets or sets the PageBorder
Declaration
public PageBorder PageBorder { get; set; }
Property Value
Type |
---|
PageBorder |
PageCount
Gets the page count
Declaration
public int PageCount { get; }
Property Value
Type |
---|
System.Int32 |
PageOrganizer
Provide functionalities to handle the collection of pages.
Declaration
public PageOrganizer PageOrganizer { get; }
Property Value
Type |
---|
PageOrganizer |
PageOrganizerSettings
Settings for organizing pages
Declaration
public PageOrganizeSettings PageOrganizerSettings { get; }
Property Value
Type |
---|
PageOrganizeSettings |
PageRedactor
Provides functionalities to perform page redaction
Declaration
public PageRedactor PageRedactor { get; }
Property Value
Type |
---|
PageRedactor |
PolygonAnnotationSettings
Gets or Sets the polygon annotation settings.
Declaration
public PdfViewerPolygonSettings PolygonAnnotationSettings { get; set; }
Property Value
Type |
---|
PdfViewerPolygonSettings |
PolylineAnnotationSettings
Gets or Sets the polyLine annotation settings.
Declaration
public PdfViewerPolylineSettings PolylineAnnotationSettings { get; set; }
Property Value
Type |
---|
PdfViewerPolylineSettings |
PreviousPageCommand
Gets or sets the value that represents Previous Page command of PdfViewerControl.
Declaration
public ICommand PreviousPageCommand { get; set; }
Property Value
Type |
---|
System.Windows.Input.ICommand |
PreviousPageCommandParameter
Gets or Sets the PreviousPageCommandParameter of PdfViewerControl
Declaration
public object PreviousPageCommandParameter { get; set; }
Property Value
Type |
---|
System.Object |
PrintCommand
Gets or sets the value that represents Print command of PdfViewerControl.
Declaration
public ICommand PrintCommand { get; set; }
Property Value
Type |
---|
System.Windows.Input.ICommand |
PrintCommandParameter
Gets or Sets the PrintCommandParameter of PdfViewerControl
Declaration
public object PrintCommandParameter { get; set; }
Property Value
Type |
---|
System.Object |
PrintDocument
Gets the fixed-format document of the PDF file loaded in the PdfViewerControl,
Declaration
public FixedDocument PrintDocument { get; }
Property Value
Type |
---|
System.Windows.Documents.FixedDocument |
PrinterSettings
Represents printer settings for the document to be printed.
Declaration
public PdfViewerPrinterSettings PrinterSettings { get; set; }
Property Value
Type |
---|
PdfViewerPrinterSettings |
ProgressIndicator
Gets or Sets the loading progress indicator settings
Declaration
public PdfProgressIndicator ProgressIndicator { get; set; }
Property Value
Type |
---|
PdfProgressIndicator |
RectangleAnnotationSettings
Get and Set the rectangle annotation settings
Declaration
public PdfViewerRectangleSettings RectangleAnnotationSettings { get; set; }
Property Value
Type |
---|
PdfViewerRectangleSettings |
RedactionSettings
Gets and sets the redaction settings.
Declaration
public RedactionSettings RedactionSettings { get; }
Property Value
Type |
---|
RedactionSettings |
RedoCommand
Defines Command for Redo the changes
Declaration
public RedoCommand RedoCommand { get; set; }
Property Value
Type |
---|
RedoCommand |
ReferencePath
Specifes the Pdfium path in PDF Viewer control
Declaration
public string ReferencePath { get; set; }
Property Value
Type |
---|
System.String |
RenderingEngine
Specifes the rendering mode in PDF Viewer control.
Declaration
public PdfRenderingEngine RenderingEngine { get; set; }
Property Value
Type |
---|
PdfRenderingEngine |
SaveDocumentCommand
Gets the command that saves the document in the file path passed as command parameter.
Declaration
public ICommand SaveDocumentCommand { get; }
Property Value
Type |
---|
System.Windows.Input.ICommand |
Examples
if(pdfViewerControl.SaveDocumentCommand.CanExecute(@"C:\temp\Output.pdf"))
pdfViewerControl.SaveDocumentCommand.Execute(@"C:\temp\Output.pdf");
See Also
SearchNextCommand
Gets or Sets the SearchNextCommand of PdfViewerControl
Declaration
public ICommand SearchNextCommand { get; set; }
Property Value
Type |
---|
System.Windows.Input.ICommand |
SearchNextCommandParameter
Gets or Sets the SearchNextCommandParameter of PdfViewerControl
Declaration
public object SearchNextCommandParameter { get; set; }
Property Value
Type |
---|
System.Object |
SearchPreviousCommand
Gets or Sets the SearchPreviousCommand of PdfViewerControl
Declaration
public ICommand SearchPreviousCommand { get; set; }
Property Value
Type |
---|
System.Windows.Input.ICommand |
SearchPreviousCommandParameter
Gets or Sets the SearchPreviousCommandParameter of PdfViewerControl
Declaration
public object SearchPreviousCommandParameter { get; set; }
Property Value
Type |
---|
System.Object |
SelectedText
Gets the selected text
Declaration
public string SelectedText { get; }
Property Value
Type |
---|
System.String |
SelectorSettings
Gets or sets the default appearance of annotation selector.
Declaration
public SelectorSettings SelectorSettings { get; set; }
Property Value
Type |
---|
SelectorSettings |
ShowHorizontalScrollBar
Gets and sets the boolean value to enable and disable the horizontal scrollbar in PdfViewerControl
Declaration
public bool ShowHorizontalScrollBar { get; set; }
Property Value
Type |
---|
System.Boolean |
ShowScrollbar
Gets and Sets the boolean value to Enable and Disable the Horizontal and Vertical Scrollbars in PDF Viewer control
Declaration
public bool ShowScrollbar { get; set; }
Property Value
Type |
---|
System.Boolean |
ShowToolbar
Gets and sets the visibility of the toolbar in PdfViewerControl
Declaration
public bool ShowToolbar { get; set; }
Property Value
Type |
---|
System.Boolean |
ShowVerticalScrollBar
Gets and sets the boolean value to enable and disable the vertical scrollbar in PdfViewerControl
Declaration
public bool ShowVerticalScrollBar { get; set; }
Property Value
Type |
---|
System.Boolean |
SquigglyAnnotationSettings
Gets or sets the default settings for squiggly annotation.
Declaration
public PdfViewerSquigglySettings SquigglyAnnotationSettings { get; set; }
Property Value
Type |
---|
PdfViewerSquigglySettings |
StampAnnotationSettings
Gets and sets the stamp annotation settings.
Declaration
public PdfViewerStampSettings StampAnnotationSettings { get; set; }
Property Value
Type |
---|
PdfViewerStampSettings |
StickyNoteAnnotationSettings
Gets or Sets the sticky note annotation settings.
Declaration
public PdfViewerStickyNoteSettings StickyNoteAnnotationSettings { get; set; }
Property Value
Type |
---|
PdfViewerStickyNoteSettings |
StrikethroughAnnotationSettings
Get and Set the strikethrough annotation settings
Declaration
public PdfViewerStrikethroughSettings StrikethroughAnnotationSettings { get; set; }
Property Value
Type |
---|
PdfViewerStrikethroughSettings |
TextExtractionEngine
Gets or sets the engine for extracting text information from PDF documents and using it for text-based operations such as text selection, search and more. The default value is Pdfium.
Declaration
public PdfTextExtractionEngine TextExtractionEngine { get; set; }
Property Value
Type |
---|
PdfTextExtractionEngine |
TextSelectionBrushColor
Gets and sets the color of the text selection brush
Declaration
public Color TextSelectionBrushColor { get; set; }
Property Value
Type |
---|
System.Windows.Media.Color |
ThumbnailSettings
Gets or sets the thumbnail settings.
Declaration
public ThumbnailSettings ThumbnailSettings { get; set; }
Property Value
Type |
---|
ThumbnailSettings |
ToolbarSettings
Get and Set the toolbar settings
Declaration
public PdfViewerToolbarSettings ToolbarSettings { get; set; }
Property Value
Type |
---|
PdfViewerToolbarSettings |
UnderlineAnnotationSettings
Get and Set the underline annotation settings
Declaration
public PdfViewerUnderlineSettings UnderlineAnnotationSettings { get; set; }
Property Value
Type |
---|
PdfViewerUnderlineSettings |
UndoCommand
Defines Command for Undo the changes
Declaration
public UndoCommand UndoCommand { get; set; }
Property Value
Type |
---|
UndoCommand |
UndoRedoSettings
Gets or sets the undo/redo settings
Declaration
public UndoRedoSettings UndoRedoSettings { get; set; }
Property Value
Type |
---|
UndoRedoSettings |
UnloadCommand
Gets or sets the value that represents unload the current document PdfDocumentView.
Declaration
public ICommand UnloadCommand { get; set; }
Property Value
Type |
---|
System.Windows.Input.ICommand |
VerticalOffset
Gets or sets the vertical offset of the control that has been scrolled down from the top of the document.
Declaration
public double VerticalOffset { get; set; }
Property Value
Type |
---|
System.Double |
WarnBeforeClose
Enable or Disable to display save changes message box
Declaration
public bool WarnBeforeClose { get; set; }
Property Value
Type |
---|
System.Boolean |
Zoom
Enables zooming the document by binding
Declaration
public double Zoom { get; set; }
Property Value
Type |
---|
System.Double |
ZoomMode
Gets and sets the Zoom Mode
Declaration
public ZoomMode ZoomMode { get; set; }
Property Value
Type |
---|
ZoomMode |
ZoomPercentage
Gets the current zoom percentage
Declaration
public int ZoomPercentage { get; }
Property Value
Type |
---|
System.Int32 |
Methods
add_CurrentPageChanged(CurrentPageChangedEventHandler)
Declaration
public void add_CurrentPageChanged(CurrentPageChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
CurrentPageChangedEventHandler | value |
add_DocumentLoaded(PdfViewerControl.DocumentLoadedEventHandler)
Declaration
public void add_DocumentLoaded(PdfViewerControl.DocumentLoadedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
PdfViewerControl.DocumentLoadedEventHandler | value |
add_ErrorOccurred(ErrorEventHandler)
Declaration
public void add_ErrorOccurred(ErrorEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
ErrorEventHandler | value |
add_FormFieldClicked(FormFieldClickedEventHandler)
Declaration
public void add_FormFieldClicked(FormFieldClickedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
FormFieldClickedEventHandler | value |
add_HyperlinkMouseOver(PdfViewerControl.HyperLinkMouseOverEventHandler)
Declaration
public void add_HyperlinkMouseOver(PdfViewerControl.HyperLinkMouseOverEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
PdfViewerControl.HyperLinkMouseOverEventHandler | value |
add_HyperLinkMouseOver(PdfViewerControl.HyperLinkMouseOverEventHandler)
Declaration
public void add_HyperLinkMouseOver(PdfViewerControl.HyperLinkMouseOverEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
PdfViewerControl.HyperLinkMouseOverEventHandler | value |
add_PageClicked(PageClickedEventHandler)
Declaration
public void add_PageClicked(PageClickedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
PageClickedEventHandler | value |
add_PageMouseMove(PageMouseMoveEventHandler)
Declaration
public void add_PageMouseMove(PageMouseMoveEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
PageMouseMoveEventHandler | value |
add_ScrollChanged(OnScrollChangedEventHandler)
Declaration
public void add_ScrollChanged(OnScrollChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
OnScrollChangedEventHandler | value |
add_TextSelectionCompleted(TextSelectionCompletedEventHandler)
Declaration
public void add_TextSelectionCompleted(TextSelectionCompletedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
TextSelectionCompletedEventHandler | value |
add_ZoomChanged(ZoomChangedEventHandler)
Declaration
public void add_ZoomChanged(ZoomChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
ZoomChangedEventHandler | value |
AddHandwrittenSignature(Path, Dictionary<Int32, List<RectangleF>>)
Add signatures to the specified pages and bounds collection.
Declaration
public void AddHandwrittenSignature(Path signature, Dictionary<int, List<RectangleF>> bounds)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Shapes.Path | signature | The signature to be added. |
System.Collections.Generic.Dictionary<System.Int32, System.Collections.Generic.List<System.Drawing.RectangleF>> | bounds | Collection of position and size of the signatures to be added. Where key is the page number which ranges from 1 to page count and values are bounds. |
AddHandwrittenSignature(Path, Int32, RectangleF)
Add signature to the specified page and bounds.
Declaration
public void AddHandwrittenSignature(Path signature, int pageNumber, RectangleF bounds)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Shapes.Path | signature | The signature to be added. |
System.Int32 | pageNumber | The page number in which the signature to be added. The value ranges from 1 to page count. |
System.Drawing.RectangleF | bounds | Position and size of the signature to be added. |
AddStamp(PdfStampAnnotation, Int32, Point)
Adds a stamp on the PDF page in the specified position, with the original size of the stamp.
Declaration
public void AddStamp(PdfStampAnnotation stamp, int pageNumber, Point position)
Parameters
Type | Name | Description |
---|---|---|
PdfStampAnnotation | stamp | Specifies the stamp that will be added on the page. |
System.Int32 | pageNumber | Specifies the page number to which the stamp should be added.The value ranges from 1 to total page count. |
System.Windows.Point | position | Specifies where the stamp should be placed on the page. |
AddStamp(PdfStampAnnotation, Int32, Point, Size)
Adds a stamp on the PDF page with the specified position and size.
Declaration
public void AddStamp(PdfStampAnnotation stamp, int pageNumber, Point position, Size stampSize)
Parameters
Type | Name | Description |
---|---|---|
PdfStampAnnotation | stamp | Specifies the stamp that will be added on the page. |
System.Int32 | pageNumber | Specifies the page number to which the stamp should be added. The value ranges from 1 to total page count. |
System.Windows.Point | position | Specifies where the stamp should be placed on the page. |
System.Drawing.Size | stampSize | Specifies the size of the stamp. |
ClearAllAnnotations()
Delete all the annotations in the whole PDF document.
Declaration
public void ClearAllAnnotations()
ClearAllAnnotations(Int32)
Declaration
public void ClearAllAnnotations(int pageNumber)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pageNumber |
ConvertClientPointToPagePoint(Point, Int32)
Converts the client point to a page point.
Declaration
public Point ConvertClientPointToPagePoint(Point clientPoint, int pageNumber)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Point | clientPoint | The client point to convert. It is a point determined from the top-left of the client area (viewport). You may get to the client area using the ClientRectangle property. |
System.Int32 | pageNumber | The number of the page from which the point will be computed. You can get the page number from the client point using the method GetPageNumberFromClientPoint(Point) method. |
Returns
Type | Description |
---|---|
System.Windows.Point | The converted point in page coordinates. |
ConvertPagePointToClientPoint(Point, Int32)
Converts a page point to the client point.
Declaration
public Point ConvertPagePointToClientPoint(Point pagePoint, int pageNumber)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Point | pagePoint | The page point to convert. |
System.Int32 | pageNumber | The number of the page from which the point is given. |
Returns
Type | Description |
---|---|
System.Windows.Point | The converted client point. The client point is determined from the top-left of the client area (viewport). |
ConvertPagePointToScrollingPoint(Point, Int32)
Converts a page point to the scrolling point.
Declaration
public Point ConvertPagePointToScrollingPoint(Point pagePoint, int pageNumber)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Point | pagePoint | The page point to convert. |
System.Int32 | pageNumber | The number of the page from which the point is given. |
Returns
Type | Description |
---|---|
System.Windows.Point | The converted scrolling point. The scrolling point is determined from the document's top-left corner. |
CurrentPagePropertyChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Represents the callback that is invoked when the CurrentPageProperty value is changed.
Declaration
public static void CurrentPagePropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj | The System.Windows.DependencyObject on which the property has changed value. |
System.Windows.DependencyPropertyChangedEventArgs | args | Event data that is issued by any event that tracks changes to the effective value of this property. |
DeleteAnnotation(String)
Deletes an annotation on a document based on its name.
Declaration
public bool DeleteAnnotation(string annotationName)
Parameters
Type | Name | Description |
---|---|---|
System.String | annotationName | Specifies the annotation name. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true, if any annotation is found and deleted. Otherwise, it returns false. |
DeleteAnnotation(String, Int32)
Deletes an annotation on a page based on its name and the page number.
Declaration
public bool DeleteAnnotation(string annotationName, int pageNumber)
Parameters
Type | Name | Description |
---|---|---|
System.String | annotationName | Specifies the annotation name. |
System.Int32 | pageNumber | Specifes the page number on which the annotation is located. The value ranges from 1 to page count. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true, if any annotation is found and deleted. Otherwise, it returns false. |
ExportAnnotations(Stream, AnnotationDataFormat)
Declaration
public void ExportAnnotations(Stream stream, AnnotationDataFormat format)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | |
AnnotationDataFormat | format |
ExportAnnotations(String, AnnotationDataFormat)
Exports annotations from the viewer as a file in a specified data format.
Declaration
public void ExportAnnotations(string fileName, AnnotationDataFormat format)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | The full path to file which contains the annotation information. |
AnnotationDataFormat | format | The AnnotationDataFormat data format. |
ExportAsImage(Int32)
Exports the specified page as System.Windows.Media.Imaging.BitmapSource
Declaration
public BitmapSource ExportAsImage(int pageIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pageIndex | The page index to be converted into System.Windows.Media.Imaging.BitmapSource |
Returns
Type | Description |
---|---|
System.Windows.Media.Imaging.BitmapSource | Returns the specified page as System.Windows.Media.Imaging.BitmapSource |
ExportAsImage(Int32, Boolean)
Declaration
public BitmapSource ExportAsImage(int pageIndex, bool keepTransparency)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pageIndex | |
System.Boolean | keepTransparency |
Returns
Type |
---|
System.Windows.Media.Imaging.BitmapSource |
ExportAsImage(Int32, SizeF, Boolean)
Exports the specified page as System.Windows.Media.Imaging.BitmapSource
Declaration
public BitmapSource ExportAsImage(int pageIndex, SizeF customSize, bool keepAspectRatio)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pageIndex | The page index to be converted into System.Windows.Media.Imaging.BitmapSource |
System.Drawing.SizeF | customSize | The custom size of the converted System.Windows.Media.Imaging.BitmapSource |
System.Boolean | keepAspectRatio | Whether need to maintain the pdf page size |
Returns
Type | Description |
---|---|
System.Windows.Media.Imaging.BitmapSource | Returns the specified page as System.Windows.Media.Imaging.BitmapSource with custom size |
ExportAsImage(Int32, SizeF, Boolean, Boolean)
Declaration
public BitmapSource ExportAsImage(int pageIndex, SizeF customSize, bool keepAspectRatio, bool keepTransparency)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pageIndex | |
System.Drawing.SizeF | customSize | |
System.Boolean | keepAspectRatio | |
System.Boolean | keepTransparency |
Returns
Type |
---|
System.Windows.Media.Imaging.BitmapSource |
ExportAsImage(Int32, SizeF, Single, Single, Boolean)
Exports the specified page as System.Windows.Media.Imaging.BitmapSource
Declaration
public BitmapSource ExportAsImage(int pageIndex, SizeF customSize, float dpiX, float dpiY, bool keepAspectRatio)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pageIndex | The page index to be converted into image |
System.Drawing.SizeF | customSize | The custom size of the converted System.Windows.Media.Imaging.BitmapSource |
System.Single | dpiX | The horizontal DPI of the resultant System.Windows.Media.Imaging.BitmapSource. |
System.Single | dpiY | The vertical DPI of the resultant System.Windows.Media.Imaging.BitmapSource. |
System.Boolean | keepAspectRatio | Whether need to maintain the pdf page size |
Returns
Type |
---|
System.Windows.Media.Imaging.BitmapSource |
ExportAsImage(Int32, SizeF, Single, Single, Boolean, Boolean)
Declaration
public BitmapSource ExportAsImage(int pageIndex, SizeF customSize, float dpiX, float dpiY, bool keepAspectRatio, bool keepTransparency)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pageIndex | |
System.Drawing.SizeF | customSize | |
System.Single | dpiX | |
System.Single | dpiY | |
System.Boolean | keepAspectRatio | |
System.Boolean | keepTransparency |
Returns
Type |
---|
System.Windows.Media.Imaging.BitmapSource |
ExportAsImage(Int32, Int32)
Exports the specified pages as System.Windows.Media.Imaging.BitmapSource
Declaration
public BitmapSource[] ExportAsImage(int startIndex, int endIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | startIndex | The starting page index |
System.Int32 | endIndex | The ending page index |
Returns
Type | Description |
---|---|
System.Windows.Media.Imaging.BitmapSource[] | Returns the specified pages as System.Windows.Media.Imaging.BitmapSource |
ExportAsImage(Int32, Int32, Boolean)
Declaration
public BitmapSource[] ExportAsImage(int startIndex, int endIndex, bool keepTransparency)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | startIndex | |
System.Int32 | endIndex | |
System.Boolean | keepTransparency |
Returns
Type |
---|
System.Windows.Media.Imaging.BitmapSource[] |
ExportAsImage(Int32, Int32, SizeF, Boolean)
Exports the specified pages as System.Windows.Media.Imaging.BitmapSource
Declaration
public BitmapSource[] ExportAsImage(int startIndex, int endIndex, SizeF customSize, bool keepAspectRatio)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | startIndex | The starting page index |
System.Int32 | endIndex | The ending page index |
System.Drawing.SizeF | customSize | The custom size of the converted System.Windows.Media.Imaging.BitmapSource |
System.Boolean | keepAspectRatio | Whether need to maintain the pdf page size |
Returns
Type | Description |
---|---|
System.Windows.Media.Imaging.BitmapSource[] | Returns the specified pages as System.Windows.Media.Imaging.BitmapSource with custom size |
ExportAsImage(Int32, Int32, SizeF, Boolean, Boolean)
Declaration
public BitmapSource[] ExportAsImage(int startIndex, int endIndex, SizeF customSize, bool keepAspectRatio, bool keepTransparency)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | startIndex | |
System.Int32 | endIndex | |
System.Drawing.SizeF | customSize | |
System.Boolean | keepAspectRatio | |
System.Boolean | keepTransparency |
Returns
Type |
---|
System.Windows.Media.Imaging.BitmapSource[] |
ExportAsImage(Int32, Int32, SizeF, Single, Single, Boolean)
Exports the specified pages as System.Windows.Media.Imaging.BitmapSource
Declaration
public BitmapSource[] ExportAsImage(int startIndex, int endIndex, SizeF customSize, float dpiX, float dpiY, bool keepAspectRatio)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | startIndex | The starting page index |
System.Int32 | endIndex | The ending page index |
System.Drawing.SizeF | customSize | The custom size of the converted System.Windows.Media.Imaging.BitmapSource |
System.Single | dpiX | The horizontal DPI of the resultant System.Windows.Media.Imaging.BitmapSource. |
System.Single | dpiY | The vertical DPI of the resultant System.Windows.Media.Imaging.BitmapSource. |
System.Boolean | keepAspectRatio | Whether need to maintain the pdf page size |
Returns
Type | Description |
---|---|
System.Windows.Media.Imaging.BitmapSource[] | Returns the specified pages as System.Windows.Media.Imaging.BitmapSource with custom size and resolution |
ExportAsImage(Int32, Int32, SizeF, Single, Single, Boolean, Boolean)
Declaration
public BitmapSource[] ExportAsImage(int startIndex, int endIndex, SizeF customSize, float dpiX, float dpiY, bool keepAspectRatio, bool keepTransparency)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | startIndex | |
System.Int32 | endIndex | |
System.Drawing.SizeF | customSize | |
System.Single | dpiX | |
System.Single | dpiY | |
System.Boolean | keepAspectRatio | |
System.Boolean | keepTransparency |
Returns
Type |
---|
System.Windows.Media.Imaging.BitmapSource[] |
ExportAsImage(Int32, Int32, Single, Single)
Exports the specified pages as System.Windows.Media.Imaging.BitmapSource with respect to dpi specified.
Declaration
public BitmapSource[] ExportAsImage(int startIndex, int endIndex, float dpiX, float dpiY)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | startIndex | The starting page index |
System.Int32 | endIndex | The ending page index |
System.Single | dpiX | The horizontal DPI of the resultant System.Windows.Media.Imaging.BitmapSource. |
System.Single | dpiY | The vertical DPI of the resultant System.Windows.Media.Imaging.BitmapSource. |
Returns
Type | Description |
---|---|
System.Windows.Media.Imaging.BitmapSource[] | Returns the specified pages as System.Windows.Media.Imaging.BitmapSource with custom resolution |
ExportAsImage(Int32, Int32, Single, Single, Boolean)
Declaration
public BitmapSource[] ExportAsImage(int startIndex, int endIndex, float dpiX, float dpiY, bool keepTransparency)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | startIndex | |
System.Int32 | endIndex | |
System.Single | dpiX | |
System.Single | dpiY | |
System.Boolean | keepTransparency |
Returns
Type |
---|
System.Windows.Media.Imaging.BitmapSource[] |
ExportAsImage(Int32, Single, Single)
Exports the specified page as System.Windows.Media.Imaging.BitmapSource with respect to dpi specified.
Declaration
public BitmapSource ExportAsImage(int pageIndex, float dpiX, float dpiY)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pageIndex | The page index to be converted into System.Windows.Media.Imaging.BitmapSource |
System.Single | dpiX | The horizontal DPI of the resultant System.Windows.Media.Imaging.BitmapSource. |
System.Single | dpiY | The vertical DPI of the resultant System.Windows.Media.Imaging.BitmapSource. |
Returns
Type | Description |
---|---|
System.Windows.Media.Imaging.BitmapSource | Returns the specified page as System.Windows.Media.Imaging.BitmapSource with custom resolution |
ExportAsImage(Int32, Single, Single, Boolean)
Declaration
public BitmapSource ExportAsImage(int pageIndex, float dpiX, float dpiY, bool keepTransparency)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pageIndex | |
System.Single | dpiX | |
System.Single | dpiY | |
System.Boolean | keepTransparency |
Returns
Type |
---|
System.Windows.Media.Imaging.BitmapSource |
ExportFormData(String, DataFormat, String)
Export data from a form file.
Declaration
public void ExportFormData(string fileName, DataFormat dataFormat, string formName)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | Name of the document which is need to export. |
DataFormat | dataFormat | The form data format. |
System.String | formName | The name of the PDF file the data is exported from. |
ExtractText(Int32, out TextLines)
Extracts text from the page of PDF document with lines and words collection.
Declaration
public string ExtractText(int index, out TextLines textLines)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
TextLines | textLines | Holds the lines with bounds in the page. |
Returns
Type | Description |
---|---|
System.String | The Extracted Text. |
ExtractText(Int32, out List<TextData>)
Extracts text along with its format from the PDF Page.
Declaration
public string ExtractText(int index, out List<TextData> textDataCollection)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
System.Collections.Generic.List<TextData> | textDataCollection | Provides the text data collection |
Returns
Type | Description |
---|---|
System.String | Returns the extracted text. |
FindText(List<String>, out Dictionary<Int32, List<TextSearchResult>>)
Returns the dictionary of page number and list of captured terms in the PDF document.
Declaration
public bool FindText(List<string> searchItems, out Dictionary<int, List<TextSearchResult>> searchResults)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<System.String> | searchItems | List of items to be searched. |
System.Collections.Generic.Dictionary<System.Int32, System.Collections.Generic.List<Syncfusion.Windows.PdfViewer.TextSearchResult>> | searchResults | The dictionary of page number and list of search results. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if found any match |
FindText(List<String>, Int32, out List<MatchedItem>)
Returns the information of the matched texts in a specific page.
Declaration
public bool FindText(List<string> searchItems, int pageIndex, out List<MatchedItem> searchResults)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<System.String> | searchItems | The collection of terms to be searched. |
System.Int32 | pageIndex | The specified page index |
System.Collections.Generic.List<MatchedItem> | searchResults | Holds the information of the matched texts. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if found any match |
FindText(String, out Dictionary<Int32, List<RectangleF>>)
Returns the page number and rectangle postions of the text matchs found in the page
Declaration
public bool FindText(string text, out Dictionary<int, List<RectangleF>> matchRect)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text to be searched |
System.Collections.Generic.Dictionary<System.Int32, System.Collections.Generic.List<System.Drawing.RectangleF>> | matchRect | Holds the page number and rectangle positions of the text matches |
Returns
Type |
---|
System.Boolean |
FindText(String, Int32, out List<RectangleF>)
Returns the bounds of the matched texts in a specific page.
Declaration
public bool FindText(string text, int pageIndex, out List<RectangleF> matchRectCollection)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text to be searched. |
System.Int32 | pageIndex | pThe specified page index. |
System.Collections.Generic.List<System.Drawing.RectangleF> | matchRectCollection | Holds the bounds of the matched texts. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if found any matchRectCollection. |
GetPageNumberFromClientPoint(Point)
Gets the number of the page for the given client point.
Declaration
public int GetPageNumberFromClientPoint(Point clientPoint)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Point | clientPoint | The client point. It is a point determined from the top-left of the client area (viewport). You can get the client area using the ClientRectangle property. |
Returns
Type | Description |
---|---|
System.Int32 | The number of the page. |
GoToBookmark(PdfBookmark)
Navigates to the location of the bookmark.
Declaration
public void GoToBookmark(PdfBookmark bookmark)
Parameters
Type | Name | Description |
---|---|---|
PdfBookmark | bookmark | The PdfBookmark object that contains the details of the bookmark to which the viewer has to navigate. |
GoToFirstPage()
Navigates to the First page.
Declaration
public void GoToFirstPage()
GoToLastPage()
Navigates to the Last page.
Declaration
public void GoToLastPage()
GoToNextPage()
Navigates to the Next page.
Declaration
public void GoToNextPage()
GotoPage(Int32)
Navigates to the specified page.
Declaration
public void GotoPage(int pNumber)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pNumber |
GoToPageAtIndex(Int32)
Navigates to the specified page.
Declaration
public void GoToPageAtIndex(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The page index |
GoToPreviousPage()
Navigates to the Previous page.
Declaration
public void GoToPreviousPage()
HideAnnotation(String)
Hides an annotation on a document based on its name.
Declaration
public bool HideAnnotation(string annotationName)
Parameters
Type | Name | Description |
---|---|---|
System.String | annotationName | Specifies the annotation name. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true, if any annotation is found and hidden. Otherwise, it returns false. |
HideAnnotation(String, Int32)
Hides an annotation on a page based on its name and the page number.
Declaration
public bool HideAnnotation(string annotationName, int pageNumber)
Parameters
Type | Name | Description |
---|---|---|
System.String | annotationName | Specifies the annotation name. |
System.Int32 | pageNumber | Specifes the page number on which the annotation is located. The value ranges from 1 to page count. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true, if any annotation is found and hidden. Otherwise, it returns false. |
ImportAnnotations(Stream, AnnotationDataFormat)
Declaration
public void ImportAnnotations(Stream stream, AnnotationDataFormat format)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | |
AnnotationDataFormat | format |
ImportAnnotations(String, AnnotationDataFormat)
Imports annotations into the viewer from a file in a specified data format.
Declaration
public void ImportAnnotations(string fileName, AnnotationDataFormat format)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | The full path to file which contains the annotation information. |
AnnotationDataFormat | format | The AnnotationDataFormat data format. |
ImportFormData(Byte[], DataFormat)
Import data as byte array into a form file.
Declaration
public void ImportFormData(byte[] formData, DataFormat dataFormat)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | formData | Form data. |
DataFormat | dataFormat | The data format. |
ImportFormData(String, DataFormat)
Import data into a form file.
Declaration
public void ImportFormData(string fileName, DataFormat dataFormat)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | Name of the file. |
DataFormat | dataFormat |
InsertNotificationBar(String)
Used to defines the notification message.
Declaration
public void InsertNotificationBar(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | Message to be displayed. |
ItemSourcePropertyChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Represents the callback that is invoked when the ItemSourceProperty value is changed.
Declaration
public static void ItemSourcePropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj | The System.Windows.DependencyObject on which the property has changed value. |
System.Windows.DependencyPropertyChangedEventArgs | args | Event data that is issued by any event that tracks changes to the effective value of this property. |
Load(PdfLoadedDocument)
Loads a pdf document in the Pdf viewer from the specified PdfLoadedDocuemnt.
Declaration
public void Load(PdfLoadedDocument loadedDocument)
Parameters
Type | Name | Description |
---|---|---|
PdfLoadedDocument | loadedDocument | The PdfLoadedDocument to be viewed in the PdfViewer |
Load(Stream)
Loads a Pdf document in the Pdf viewer from the stream
Declaration
public void Load(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | Stream for the Pdf document to display in the pdf viewer |
Load(Stream, String)
Loads a Pdf document in the Pdf viewer.
Declaration
public void Load(Stream stream, string password)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | Stream for the Pdf document to display in the pdf viewer |
System.String | password | The password for opening the document. |
Load(String)
Loads a Pdf document in the Pdf viewer from the Specified filepath
Declaration
public void Load(string filePath)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath | The path for the Pdf document to display in the pdf viewer |
Load(String, String)
Loads a Pdf document in the Pdf viewer
Declaration
public void Load(string filePath, string password)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath | The path for the Pdf document to display in the pdf viewer |
System.String | password | The password for opening the document. |
LoadAsync(PdfLoadedDocument)
Asynchronously loads a PDF document in thePdfViewerControl from the specified PdfLoadedDocuemnt.
Declaration
public Task<bool> LoadAsync(PdfLoadedDocument loadedDocument)
Parameters
Type | Name | Description |
---|---|---|
PdfLoadedDocument | loadedDocument | The PdfLoadedDocument to be viewed in the PdfViewerControl |
Returns
Type |
---|
System.Threading.Tasks.Task<System.Boolean> |
LoadAsync(Stream)
Asynchronously loads a PDF document in the PdfViewerControl from the stream
Declaration
public Task<bool> LoadAsync(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | Stream for the PDF document to display in the PdfViewerControlr |
Returns
Type |
---|
System.Threading.Tasks.Task<System.Boolean> |
LoadAsync(Stream, String)
Asynchronously loads a Pdf document in the PdfViewerControl.
Declaration
public Task<bool> LoadAsync(Stream stream, string password)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | Stream for the Pdf document to display in the pdf viewer |
System.String | password | The password for opening the document. |
Returns
Type |
---|
System.Threading.Tasks.Task<System.Boolean> |
LoadAsync(String)
Asynchronously loads a PDF document in the PdfViewerControl from the specified file path
Declaration
public Task<bool> LoadAsync(string filePath)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath | The path for the PDF document to display in the PdfViewerControl |
Returns
Type |
---|
System.Threading.Tasks.Task<System.Boolean> |
LoadAsync(String, String)
Asynchronously loads a PDF document in the PdfViewerControl
Declaration
public Task<bool> LoadAsync(string filePath, string password)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath | The path for the PDF document to display in the PdfViewerControlr |
System.String | password | The password for opening the document. |
Returns
Type |
---|
System.Threading.Tasks.Task<System.Boolean> |
OnApplyTemplate()
Called whenever the template has been changed.
Declaration
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
Type |
---|
System.Windows.Automation.Peers.AutomationPeer |
OnMouseMove(MouseEventArgs)
Occurs when the mouse pointer is moved over the PdfViewerControl.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseEventArgs | e | The System.Windows.Input.MouseEventArgs that contains the System.Windows.UIElement.MouseMove event data. |
Print()
Prints the PDF document silently to the default printer without user interaction, which helps in batch printing multiple PDF files continuously.
Declaration
public void Print()
Print(Boolean)
Prints the document viewed in viewer with PrintDialog box.
Declaration
public void Print(bool showPrintDialog)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | showPrintDialog | If set to true, displays the PrintDialog box. Prints in silent mode when set to false. |
Print(String)
Prints the document on the specified printer.
Declaration
public void Print(string printerName)
Parameters
Type | Name | Description |
---|---|---|
System.String | printerName | The name of the destination printer to print the PDF document. |
Print(String, PageSettings)
Prints the PDF document silently to the specific printer's name and with page setting without user interaction.
Declaration
public void Print(string printerName, PageSettings pageSettings)
Parameters
Type | Name | Description |
---|---|---|
System.String | printerName | The name of the printer to use. |
System.Drawing.Printing.PageSettings | pageSettings | The page settings that are used for all pages to be printed. |
remove_CurrentPageChanged(CurrentPageChangedEventHandler)
Declaration
public void remove_CurrentPageChanged(CurrentPageChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
CurrentPageChangedEventHandler | value |
remove_DocumentLoaded(PdfViewerControl.DocumentLoadedEventHandler)
Declaration
public void remove_DocumentLoaded(PdfViewerControl.DocumentLoadedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
PdfViewerControl.DocumentLoadedEventHandler | value |
remove_ErrorOccurred(ErrorEventHandler)
Declaration
public void remove_ErrorOccurred(ErrorEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
ErrorEventHandler | value |
remove_FormFieldClicked(FormFieldClickedEventHandler)
Declaration
public void remove_FormFieldClicked(FormFieldClickedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
FormFieldClickedEventHandler | value |
remove_HyperlinkMouseOver(PdfViewerControl.HyperLinkMouseOverEventHandler)
Declaration
public void remove_HyperlinkMouseOver(PdfViewerControl.HyperLinkMouseOverEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
PdfViewerControl.HyperLinkMouseOverEventHandler | value |
remove_HyperLinkMouseOver(PdfViewerControl.HyperLinkMouseOverEventHandler)
Declaration
public void remove_HyperLinkMouseOver(PdfViewerControl.HyperLinkMouseOverEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
PdfViewerControl.HyperLinkMouseOverEventHandler | value |
remove_PageClicked(PageClickedEventHandler)
Declaration
public void remove_PageClicked(PageClickedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
PageClickedEventHandler | value |
remove_PageMouseMove(PageMouseMoveEventHandler)
Declaration
public void remove_PageMouseMove(PageMouseMoveEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
PageMouseMoveEventHandler | value |
remove_ScrollChanged(OnScrollChangedEventHandler)
Declaration
public void remove_ScrollChanged(OnScrollChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
OnScrollChangedEventHandler | value |
remove_TextSelectionCompleted(TextSelectionCompletedEventHandler)
Declaration
public void remove_TextSelectionCompleted(TextSelectionCompletedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
TextSelectionCompletedEventHandler | value |
remove_ZoomChanged(ZoomChangedEventHandler)
Declaration
public void remove_ZoomChanged(ZoomChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
ZoomChangedEventHandler | value |
Save(String)
Saves the document to the specified file name.
Declaration
public void Save(string fileName)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | The name of the file to be saved |
ScrollTo(Double)
Moves the window to the specified offset.
Declaration
public void ScrollTo(double verticalOffset)
Parameters
Type | Name | Description |
---|---|---|
System.Double | verticalOffset | The offset, relative to the top-left corner of the current window, towards which the page should scroll. |
Remarks
Internally, the parameters (offset values) of this method will be multiplied by current zoom factor. So, the parameters (offset values) must be specified in terms of default zoom factor of 1, or 100% zoom.
ScrollTo(Double, Double)
Scrolls the control to a position relative to the horizontal offset and vertical offset values.
Declaration
public void ScrollTo(double horizontalOffset, double verticalOffset)
Parameters
Type | Name | Description |
---|---|---|
System.Double | horizontalOffset | The value to which the control scrolls horizontally. |
System.Double | verticalOffset | The value to which the control scrolls vertically. |
Remarks
Internally, the parameters (offset values) of this method will be multiplied by current zoom factor. So, the parameters (offset values) must be specified in terms of default zoom factor of 1, or 100% zoom.
SearchNextText(String)
Search the next occurrence of the text.
Declaration
public void SearchNextText(string targetText)
Parameters
Type | Name | Description |
---|---|---|
System.String | targetText |
SearchNextText(String, Boolean)
Search the next occurrence of the text.
Declaration
public void SearchNextText(string targetText, bool isMatchCase)
Parameters
Type | Name | Description |
---|---|---|
System.String | targetText | |
System.Boolean | isMatchCase | if it is case sensitive, set to |
SearchPreviousText(String)
Search the previous occurrence of the text.
Declaration
public void SearchPreviousText(string targetText)
Parameters
Type | Name | Description |
---|---|---|
System.String | targetText |
SearchPreviousText(String, Boolean)
Search the previous occurrence of the text.
Declaration
public void SearchPreviousText(string targetText, bool isMatchCase)
Parameters
Type | Name | Description |
---|---|---|
System.String | targetText | |
System.Boolean | isMatchCase | if it is case sensitive, set to |
SearchText(String)
Searches the text
Declaration
public void SearchText(string targetText)
Parameters
Type | Name | Description |
---|---|---|
System.String | targetText |
SearchText(String, Boolean)
Searches the text
Declaration
public void SearchText(string targetText, bool isMatchCase)
Parameters
Type | Name | Description |
---|---|---|
System.String | targetText | |
System.Boolean | isMatchCase | if it is case sensitive, set to |
SelectAnnotation(String)
Selects an annotation on a document based on its name.
Declaration
public bool SelectAnnotation(string annotationName)
Parameters
Type | Name | Description |
---|---|---|
System.String | annotationName | Specifies the annotation name. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true, if any annotation is found and selected. Otherwise, it returns false. |
SelectAnnotation(String, Boolean)
Selects an annotation on a document based on its name.
Declaration
public bool SelectAnnotation(string annotationName, bool bringIntoView)
Parameters
Type | Name | Description |
---|---|---|
System.String | annotationName | Specifies the annotation name. |
System.Boolean | bringIntoView | if the selected annotation need to bring into view,set to |
Returns
Type | Description |
---|---|
System.Boolean | Returns true, if any annotation is found and selected. Otherwise, it returns false. |
SelectAnnotation(String, Int32)
Selects an annotation on a page based on its name and the page number.
Declaration
public bool SelectAnnotation(string annotationName, int pageNumber)
Parameters
Type | Name | Description |
---|---|---|
System.String | annotationName | Specifies the annotation name. |
System.Int32 | pageNumber | Specifes the page number on which the annotation is located. The value ranges from 1 to page count. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true, if any annotation is found and selected. Otherwise, it returns false. |
SelectAnnotation(String, Int32, Boolean)
Selects an annotation on a page based on its name and the page number.
Declaration
public bool SelectAnnotation(string annotationName, int pageNumber, bool bringIntoView)
Parameters
Type | Name | Description |
---|---|---|
System.String | annotationName | Specifies the annotation name. |
System.Int32 | pageNumber | Specifes the page number on which the annotation is located. The value ranges from 1 to page count. |
System.Boolean | bringIntoView | if the selected annotation need to bring into view,set to |
Returns
Type | Description |
---|---|
System.Boolean | Returns true, if any annotation is found and selected. Otherwise, it returns false. |
SelectionBrushPropertyChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Represents the callback that is invoked when the TextSelectionBrushColorProperty value is changed.
Declaration
public static void SelectionBrushPropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj | The System.Windows.DependencyObject on which the property has changed value. |
System.Windows.DependencyPropertyChangedEventArgs | args | Event data that is issued by any event that tracks changes to the effective value of this property. |
ShowAnnotation(String)
Shows a hidden annotation on a document based on its name.
Declaration
public bool ShowAnnotation(string annotationName)
Parameters
Type | Name | Description |
---|---|---|
System.String | annotationName | Specifies the annotation name. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true, if any hidden annotation is shown. Otherwise, it returns false. |
ShowAnnotation(String, Int32)
Shows a hidden annotation on a page based on its name and the page number.
Declaration
public bool ShowAnnotation(string annotationName, int pageNumber)
Parameters
Type | Name | Description |
---|---|---|
System.String | annotationName | Specifies the annotation name. |
System.Int32 | pageNumber | Specifes the page number on which the annotation is located. The value ranges from 1 to page count. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true, if any hidden annotation is shown. Otherwise, it returns false. |
ShowTextSearchBar()
Display text search bar for search text in viewer.
Declaration
public void ShowTextSearchBar()
ShowToolbarPropertyChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Represents the callback that is invoked when the ShowToolbarProperty value is changed.
Declaration
public static void ShowToolbarPropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | o | |
System.Windows.DependencyPropertyChangedEventArgs | e |
Unload()
Unloads the Pdf document
Declaration
public void Unload()
Unload(Boolean)
Unloads the PDF document.
Declaration
public void Unload(bool disposeDocument)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposeDocument | Setting this parameter to true will dispose the loaded document completely. By default this parameter is set to false |
ZoomModePropertyChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Represents the callback that is invoked when the ZoomModeProperty value is changed.
Declaration
public static void ZoomModePropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj | The System.Windows.DependencyObject on which the property has changed value. |
System.Windows.DependencyPropertyChangedEventArgs | args | Event data that is issued by any event that tracks changes to the effective value of this property. |
ZoomPropertyChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Represents the callback that is invoked when the ZoomProperty value is changed.
Declaration
public static void ZoomPropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj | The System.Windows.DependencyObject on which the property has changed value. |
System.Windows.DependencyPropertyChangedEventArgs | args | Event data that is issued by any event that tracks changes to the effective value of this property. |
ZoomTo(Int32)
Magnifies the page of the document to the provided zoom percentage.
Declaration
public void ZoomTo(int percentage)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | percentage | Zoom percentage |
ZoomToRect(Rect)
Zooms in on a selected area of the document to fit it into the window, and scrolls to bring it into view.
Declaration
public void ZoomToRect(Rect rect)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Rect | rect | The selected rectangle area of the document |
Events
BeginPrint
Occurs when the print is called and before the first page of the document prints.
Declaration
public event EventHandler<BeginPrintEventArgs> BeginPrint
Event Type
Type |
---|
System.EventHandler<BeginPrintEventArgs> |
BeginSave
Occurs before initiating the save operation of a PDF Document.
Declaration
public event EventHandler<BeginSaveEventArgs> BeginSave
Event Type
Type |
---|
System.EventHandler<BeginSaveEventArgs> |
See Also
CurrentPageChanged
Occurs when the current page is changed.
Declaration
public event CurrentPageChangedEventHandler CurrentPageChanged
Event Type
Type |
---|
CurrentPageChangedEventHandler |
DocumentLoaded
Occurs when the Pdf document is loaded
Declaration
public event PdfViewerControl.DocumentLoadedEventHandler DocumentLoaded
Event Type
Type |
---|
PdfViewerControl.DocumentLoadedEventHandler |
DocumentUnloaded
Occurs when a PDF document is unloaded from the control.
Declaration
public event EventHandler<EventArgs> DocumentUnloaded
Event Type
Type |
---|
System.EventHandler<System.EventArgs> |
See Also
EndPrint
Occurs when the last page of the document has printed. This event also occurs if the printing process is canceled or an exception occurs during the printing process.
Declaration
public event EventHandler<EndPrintEventArgs> EndPrint
Event Type
Type |
---|
System.EventHandler<EndPrintEventArgs> |
EndSave
Occurs after the completion of the save operation of a PDF Document.
Declaration
public event EventHandler<EndSaveEventArgs> EndSave
Event Type
Type |
---|
System.EventHandler<EndSaveEventArgs> |
See Also
ErrorOccurred
Occurs when an error occured in PdfViewerControl
Declaration
public event ErrorEventHandler ErrorOccurred
Event Type
Type |
---|
ErrorEventHandler |
FileLinkAnnotationClicked
Occurs when a file link annotation is clicked.
Declaration
public event EventHandler<FileLinkAnnotationClickedEventArgs> FileLinkAnnotationClicked
Event Type
Type |
---|
System.EventHandler<FileLinkAnnotationClickedEventArgs> |
FormFieldClicked
Occurs when the form field is clicked.
Declaration
public event FormFieldClickedEventHandler FormFieldClicked
Event Type
Type |
---|
FormFieldClickedEventHandler |
Remarks
At present FormFieldClicked event is applicable only for TextBox form field.
FreeTextAnnotationChanged
Occurs when a free text annotation is changed.
Declaration
public event EventHandler<FreeTextAnnotationChangedEventArgs> FreeTextAnnotationChanged
Event Type
Type |
---|
System.EventHandler<FreeTextAnnotationChangedEventArgs> |
GetDocumentPassword
Occurs to get security password to open a password protected PDF file.
Declaration
public event EventHandler<GetDocumentPasswordEventArgs> GetDocumentPassword
Event Type
Type |
---|
System.EventHandler<GetDocumentPasswordEventArgs> |
HandwrittenSignatureChanged
Event that is fired when handwritten signature is changed.
Declaration
public event EventHandler<HandwrittenSignatureChangedEventArgs> HandwrittenSignatureChanged
Event Type
Type |
---|
System.EventHandler<HandwrittenSignatureChangedEventArgs> |
HyperlinkClicked
Occurs when a hyperlink annotation is clicked.
Declaration
public event EventHandler<HyperlinkClickedEventArgs> HyperlinkClicked
Event Type
Type |
---|
System.EventHandler<HyperlinkClickedEventArgs> |
HyperlinkMouseOver
HyperLinkMouseOver is deprecated, please use HyperlinkMouseOver instead.
Declaration
public event PdfViewerControl.HyperLinkMouseOverEventHandler HyperlinkMouseOver
Event Type
Type |
---|
PdfViewerControl.HyperLinkMouseOverEventHandler |
HyperLinkMouseOver
Declaration
public event PdfViewerControl.HyperLinkMouseOverEventHandler HyperLinkMouseOver
Event Type
Type |
---|
PdfViewerControl.HyperLinkMouseOverEventHandler |
InkAnnotationChanged
Occurs when an ink annotation is changed.
Declaration
public event EventHandler<InkAnnotationChangedEventArgs> InkAnnotationChanged
Event Type
Type |
---|
System.EventHandler<InkAnnotationChangedEventArgs> |
PageClicked
Occurs when a page is clicked in PdfViewerControl
Declaration
public event PageClickedEventHandler PageClicked
Event Type
Type |
---|
PageClickedEventHandler |
PageMouseMove
Occurs when mouse move on a page in PdfViewerControl
Declaration
public event PageMouseMoveEventHandler PageMouseMove
Event Type
Type |
---|
PageMouseMoveEventHandler |
PageRemoved
Occurs when page removal takes place.
Declaration
public event EventHandler<PageRemovedEventArgs> PageRemoved
Event Type
Type |
---|
System.EventHandler<PageRemovedEventArgs> |
PageRotated
Occurs when page rotation takes place.
Declaration
public event EventHandler<PageRotatedEventArgs> PageRotated
Event Type
Type |
---|
System.EventHandler<PageRotatedEventArgs> |
PageSelected
Occurs when the page(s) is selected in the organize pages window. It provides the information about the number of pages which are selected currently and its indexes through the event arguments.
Declaration
public event EventHandler<PageSelectedEventArgs> PageSelected
Event Type
Type |
---|
System.EventHandler<PageSelectedEventArgs> |
PrintProgress
Occurs to provide information on how much of printing content were submitted to printing subsystem
Declaration
public event EventHandler<PrintProgressEventArgs> PrintProgress
Event Type
Type |
---|
System.EventHandler<PrintProgressEventArgs> |
ScrollChanged
Occurs when changes are detected to the scroll position, extent, or viewport size.
Declaration
public event OnScrollChangedEventHandler ScrollChanged
Event Type
Type |
---|
OnScrollChangedEventHandler |
ShapeAnnotationChanged
Occurs when a shape annotation is changed.
Declaration
public event EventHandler<ShapeAnnotationChangedEventArgs> ShapeAnnotationChanged
Event Type
Type |
---|
System.EventHandler<ShapeAnnotationChangedEventArgs> |
StampAnnotationChanged
Occurs when a stamp annotation is changed.
Declaration
public event EventHandler<StampAnnotationChangedEventArgs> StampAnnotationChanged
Event Type
Type |
---|
System.EventHandler<StampAnnotationChangedEventArgs> |
StickyNoteAnnotationChanged
Occurs when a sticky note annotation is changed.
Declaration
public event EventHandler<StickyNoteAnnotationChangedEventArgs> StickyNoteAnnotationChanged
Event Type
Type |
---|
System.EventHandler<StickyNoteAnnotationChangedEventArgs> |
TextMarkupAnnotationChanged
Occurs when a text markup annotation is changed.
Declaration
public event EventHandler<TextMarkupAnnotationChangedEventArgs> TextMarkupAnnotationChanged
Event Type
Type |
---|
System.EventHandler<TextMarkupAnnotationChangedEventArgs> |
TextSelectionCompleted
Occurs when the text selection is completed in PdfViewerControl.
Declaration
public event TextSelectionCompletedEventHandler TextSelectionCompleted
Event Type
Type |
---|
TextSelectionCompletedEventHandler |
ThumbnailSelected
Occurs when a thumbnail is selected.
Declaration
public event EventHandler<ThumbnailSelectedEventArgs> ThumbnailSelected
Event Type
Type |
---|
System.EventHandler<ThumbnailSelectedEventArgs> |
ZoomChanged
Occurs when the Zoom Value is Changed in PdfViewerControl
Declaration
public event ZoomChangedEventHandler ZoomChanged
Event Type
Type |
---|
ZoomChangedEventHandler |