Back to Devexpress

PdfViewer.AddStickyNote(PdfDocumentPosition) Method

windowsforms-devexpress-dot-xtrapdfviewer-dot-pdfviewer-dot-addstickynote-x28-devexpress-dot-pdf-dot-pdfdocumentposition-x29.md

latest1.7 KB
Original Source

PdfViewer.AddStickyNote(PdfDocumentPosition) Method

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

Namespace : DevExpress.XtraPdfViewer

Assembly : DevExpress.XtraPdfViewer.v25.2.dll

NuGet Package : DevExpress.Win.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 PdfViewer.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

PdfViewer Class

PdfViewer Members

DevExpress.XtraPdfViewer Namespace