API Reference
Class
OfficeRichTextLine
Describes one measured line of rich text.
Inheritance
- Object
- OfficeRichTextLine
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property OfficeRichTextBlockLayout.Lines
Accepted by parameters
Constructors
OfficeRichTextLine 2 overloads
public OfficeRichTextLine(IReadOnlyList<OfficeRichTextSegment> segments) #Creates a line with renderer-resolved height and no horizontal offset.
Parameters
- segments System.Collections.Generic.IReadOnlyList{OfficeIMO.Drawing.OfficeRichTextSegment}
public OfficeRichTextLine(IReadOnlyList<OfficeRichTextSegment> segments, Double lineHeight = 0, Double offsetX = 0) #Creates a measured rich text line.
Parameters
- segments System.Collections.Generic.IReadOnlyList{OfficeIMO.Drawing.OfficeRichTextSegment}
- Measured segments on the line.
- lineHeight System.Double = 0
- Optional resolved height for this line. A value of zero lets block renderers fall back to the containing layout line height.
- offsetX System.Double = 0
- Additional x offset applied to this line inside the text frame.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public IReadOnlyList<OfficeRichTextSegment> Segments { get; } #Gets measured rich text segments on the line.
public Double Width { get; } #Gets the total measured line width.
public Double FontSize { get; } #Gets the largest font size used by this line.
public Double LineHeight { get; } #Gets the resolved line height for this line, or zero when the containing block line height should be used.
public Double OffsetX { get; } #Gets the additional x offset applied to this line inside the text frame.