| 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.FourHeights.PdfToolbox.Pdf.AnnotationsAssembly: PdfTools.FourHeights.PdfToolbox (in PdfTools.FourHeights.PdfToolbox.dll) Version: 4.4.6+c8104d9b5f50644b2c93d424e62edbf40828fde7
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