Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeTextBlockLayout

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Modifiers sealed

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

Inheritance

  • Object
  • OfficeTextBlockLayout

Usage

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, Boolean clipped = false) #

Creates a measured text block.

Parameters

lines System.Collections.Generic.IReadOnlyList{OfficeIMO.Drawing.OfficeTextLine} requiredposition: 0
Measured text lines.
fontSize System.Double requiredposition: 1
Resolved font size used for measurement.
lineHeight System.Double requiredposition: 2
Resolved line height.
width System.Double requiredposition: 3
Measured block width.
height System.Double requiredposition: 4
Measured block height.
clipped System.Boolean = false optionalposition: 5
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 Boolean Clipped { get; } #

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