Back to Devexpress

PdfViewerControl.AddStickyNote(PdfDocumentPosition) Method

wpf-devexpress-dot-xpf-dot-pdfviewer-dot-pdfviewercontrol-dot-addstickynote-x28-devexpress-dot-pdf-dot-pdfdocumentposition-x29.md

latest1.7 KB
Original Source

PdfViewerControl.AddStickyNote(PdfDocumentPosition) Method

Creates a text annotations (sticky note) at the specified document position.

Namespace : DevExpress.Xpf.PdfViewer

Assembly : DevExpress.Xpf.PdfViewer.v25.2.dll

NuGet Package : DevExpress.Wpf.PdfViewer

Declaration

csharp
public void AddStickyNote(
    PdfDocumentPosition position
)
vb
Public Sub AddStickyNote(
    position As PdfDocumentPosition
)

Parameters

NameTypeDescription
positionPdfDocumentPosition

The position of the sticky note on the page.

|

Remarks

The AddStickyNote method calls triggers the PdfViewerControl.AnnotationCreating event.

The code sample below shows how to create a sticky note:

csharp
pdfViewer.AddStickyNote
(new PdfDocumentPosition(1, new PdfPoint(29, 568)));
vb
pdfViewer.AddStickyNote(New PdfDocumentPosition(1, New PdfPoint(29, 568)))

See Also

PdfViewerControl Class

PdfViewerControl Members

DevExpress.Xpf.PdfViewer Namespace