Table of Contents

Constructor TextElement

Namespace
LMKit.Document.Layout
Assembly
LM-Kit.NET.dll

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

text string
left double
top double
width double
height double

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 string
box 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 string
left double
top double
width double
height double
standardRotation int
pageWidth double
pageHeight 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 string
box Quadrilateral
standardRotation int
pageWidth double
pageHeight 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