Class PageTextLine
- Namespace
- ComOfficeKit
- Assembly
- ComOfficeKit.dll
Text a page draws along one baseline (Lines): its spans, in the order they are drawn, and a space between two spans drawn apart, which no span covers.
public sealed class PageTextLine
- Inheritance
-
PageTextLine
- Inherited Members
Remarks
The line starts at (X, Baseline) and is turned Rotation degrees clockwise about that point. Its box, its spans and their advances are given before the turn: to place them on the page, lay them out unturned, then turn the whole line about its start.
Properties
Baseline
The baseline of the line's first span, in points from the top of the page.
public double Baseline { get; }
Property Value
Height
From the highest ascent to the lowest descent, in points.
public double Height { get; }
Property Value
Rotation
Degrees clockwise about (X, Baseline), from -180 to 180: 0 for a line drawn level, 90 for one that runs down the page.
public double Rotation { get; }
Property Value
Spans
The stretches of the line, each in one size at one baseline.
public IReadOnlyList<PageTextSpan> Spans { get; }
Property Value
Text
What the line says.
public string Text { get; }
Property Value
Width
From the start of the first span to the end of the last, in points.
public double Width { get; }
Property Value
X
Where the line starts: the left edge of its first span, in points.
public double X { get; }
Property Value
Y
The top of the line's box: its highest ascent, in points.
public double Y { get; }