Click or drag to resize
Pdftools logo

StickyNoteCreate Method

Create a sticky note annotation.

The returned sticky note annotation is not yet part of any page. It can be added to a page's list of annotations.

Namespace: PdfTools.Toolbox.Pdf.Annotations
Assembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.3.0+2e7887cb8ae45c4d911ad975ad001ac2f1f257d8
Syntax
C#
public static StickyNote Create(
	Document targetDocument,
	Point topLeft,
	string content,
	Paint paint
)

Parameters

targetDocument  Document
The output document with which the returned object is associated
topLeft  Point
The location of the annotation's upper left corner on the page
content  String
The text content
paint  Paint
The paint for the sticky note icon.

Return Value

StickyNote
The newly created sticky note annotation
Exceptions
ExceptionCondition
ArgumentExceptionif the targetDocument has already been closed
ArgumentExceptionif the targetDocument is read-only
ArgumentExceptionif the color space of the paint argument is not a device color space
ArgumentExceptionif the paint has a non-Transparency with BlendMode other than Normal
ArgumentExceptionif the paint argument is not associated with the targetDocument
ArgumentNullExceptionif targetDocument is .
ArgumentNullExceptionif paint is .
See Also