Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Struct

OfficeTextLine

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Base ValueType
Modifiers sealed

Represents one measured line produced by the shared dependency-free text layout helper.

Inheritance

  • ValueType
  • OfficeTextLine

Usage

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

Accepted by parameters

Constructors

public OfficeTextLine(String text, Double width, Double offsetX = 0) #

Creates a measured text line.

Parameters

text System.String requiredposition: 0
Line text.
width System.Double requiredposition: 1
Measured line width in the same coordinate space as the caller's font size.
offsetX System.Double = 0 optionalposition: 2
Additional x offset applied to this line inside the text frame.

Properties

public String Text { get; } #

Line text.

public Double Width { get; } #

Measured line width.

public Double OffsetX { get; } #

Additional x offset applied to this line inside the text frame.