Class ParagraphElement
Represents a paragraph in a document layout.
public sealed class ParagraphElement : ILayoutElement, IBounds
- Inheritance
-
ParagraphElement
- Implements
- Inherited Members
Remarks
A ParagraphElement aggregates one or more LineElement instances and exposes their combined text and bounding geometry. Coordinates are expressed in the same coordinate system as the source layout engine.
Properties
- Bottom
Gets the maximum Y coordinate of the paragraph’s bounding box.
- Bounds
Returns the paragraph’s bounding quadrilateral.
- DominantTextAngleDegrees
Dominant text angle for this paragraph in degrees, clockwise, normalized to [0, 360). Computed as a robust circular median over word angles.
- Height
Gets the height of the paragraph’s bounding box.
- LayerId
Gets the identifier of the source layer this paragraph belongs to.
- Left
Gets the minimum X coordinate of the paragraph’s bounding box.
- Lines
Gets the ordered collection of lines that compose this paragraph.
- MidX
Gets the X-coordinate of the midpoint of the bounding box.
- MidY
Gets the Y-coordinate of the midpoint of the bounding box.
- Right
Gets the maximum X coordinate of the paragraph’s bounding box.
- Text
Gets the full paragraph text.
- TextDirection
Coarse paragraph direction derived from DominantTextAngleDegrees.
- Top
Gets the minimum Y coordinate of the paragraph’s bounding box.
- Width
Gets the width of the paragraph’s bounding box.
Methods
- ToString()
Returns a readable string that includes the paragraph text and its bounding box metrics.