Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeTextBlockLayout

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Modifiers
sealed

Represents a measured multi-line text block produced by the shared text layout engine.

Inheritance

  • object
  • OfficeTextBlockLayout

Usage

Explore 12 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Constructors

public OfficeTextBlockLayout(IReadOnlyList<OfficeTextLine> lines, double fontSize, double lineHeight, double width, double height, bool clipped = false) #

Creates a measured text block.

Parameters

lines System.Collections.Generic.IReadOnlyList<OfficeIMO.Drawing.OfficeTextLine> required
Measured text lines.
fontSize double required
Resolved font size used for measurement.
lineHeight double required
Resolved line height.
width double required
Measured block width.
height double required
Measured block height.
clipped bool = false optional
Whether the block was clipped or ellipsized to fit a requested bound.

Properties

public IReadOnlyList<OfficeTextLine> Lines { get; } #

Measured text lines.

public double FontSize { get; } #

Resolved font size used for measurement.

public double LineHeight { get; } #

Resolved line height.

public double Width { get; } #

Measured block width.

public double Height { get; } #

Measured block height.

public bool Clipped { get; } #

Whether the block was clipped or ellipsized to fit a requested bound.