| TextStampCreate Method |
Create a text stamp annotation.
The width of the annotation is computed based on the given
textType.
The returned text stamp annotation is not yet part of any page.
It can be added to a page's list of annotations.
Namespace: PdfTools.Toolbox.Pdf.AnnotationsAssembly: PdfTools.Toolbox (in PdfTools.Toolbox.dll) Version: 1.1.0+5820e9ca9ca173983539ffc40abc227fb62e6928
Syntax public static TextStamp Create(
Document targetDocument,
Point topLeft,
double? height,
TextStampType textType
)
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.
- height NullableDouble
-
The height of the annotation.
- textType TextStampType
-
The text stamp type.
Return Value
TextStamp
The newly created text stamp annotation.
Exceptions Exception | Condition |
---|
ArgumentException | if the targetDocument has already been closed |
ArgumentException | if the targetDocument is read-only |
ArgumentException | if the textType argument is CustomStampText |
ArgumentNullException | if targetDocument is . |
See Also