Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeRichTextLine

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Modifiers sealed

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

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} requiredposition: 0
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} requiredposition: 0
Measured segments on the line.
lineHeight System.Double = 0 optionalposition: 1
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 optionalposition: 2
Additional x offset applied to this line inside the text frame.

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.