| FreeTextCreate Method |
Create a free-text annotation.
The returned free-text annotation is not yet part of any page.
It can be added to a page's list of annotations.
Namespace: PdfTools.FourHeights.PdfToolbox.Pdf.AnnotationsAssembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 1.0.0
Syntax public static FreeText Create(
Document targetDocument,
Rectangle boundingBox,
string content,
Paint paint,
Stroke stroke = null
)
Parameters
- targetDocument Document
-
The output document with which the returned object is associated.
- boundingBox Rectangle
-
The location on the page.
- content String
-
The text content.
- paint Paint
-
This paint used for the background of the free text annotation.
If , the background is transparent.
- stroke Stroke (Optional)
-
The stroking parameters used for stroking the rectangle.
The stroking paint is used as the annotation's main paint.
Return Value
FreeText
The newly created free text annotation.
Exceptions See Also