Constructor TextElement
TextElement(string, double, double, double, double)
Initializes a new instance of the TextElement class with the specified text and bounding box coordinates.
[JsonConstructor]
public TextElement(string text, double left, double top, double width, double height)
Parameters
TextElement(string, Quadrilateral)
Initializes a new instance of the TextElement class with the specified text and an existing quadrilateral bounding box.
public TextElement(string text, Quadrilateral box)
Parameters
text
stringbox
Quadrilateral
TextElement(string, double, double, double, double, int, double, double)
Initializes a new instance of the TextElement class with the specified text and bounding box coordinates,
then rotates that box by standardRotation
degrees around the center of a page.
public TextElement(string text, double left, double top, double width, double height, int standardRotation, double pageWidth, double pageHeight)
Parameters
text
stringleft
doubletop
doublewidth
doubleheight
doublestandardRotation
intpageWidth
doublepageHeight
double
TextElement(string, Quadrilateral, int, double, double)
Initializes a new instance of the TextElement class with the specified text
and an existing quadrilateral bounding box, then rotates that box by standardRotation
degrees around the center of a page.
public TextElement(string text, Quadrilateral box, int standardRotation, double pageWidth, double pageHeight)
Parameters
text
stringbox
QuadrilateralstandardRotation
intpageWidth
doublepageHeight
double
TextElement(string)
Initializes a new instance of the TextElement class with only the text content. Bounding box values will default to 0.
public TextElement(string text)
Parameters
text
string