Back to Devexpress

PdfViewerControl.AddStickyNote(PdfDocumentPosition, String) Method

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

latest1.9 KB
Original Source

PdfViewerControl.AddStickyNote(PdfDocumentPosition, String) Method

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

Namespace : DevExpress.Xpf.PdfViewer

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

NuGet Package : DevExpress.Wpf.PdfViewer

Declaration

csharp
public void AddStickyNote(
    PdfDocumentPosition position,
    string comment
)
vb
Public Sub AddStickyNote(
    position As PdfDocumentPosition,
    comment As String
)

Parameters

NameTypeDescription
positionPdfDocumentPosition

The position of the sticky note on the page.

| | comment | String |

The annotation comment.

|

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)),
  "Comment");
vb
pdfViewer.AddStickyNote(New PdfDocumentPosition(1, New PdfPoint(29, 568)), "Comment")

See Also

PdfViewerControl Class

PdfViewerControl Members

DevExpress.Xpf.PdfViewer Namespace