Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Struct

OfficeTextLine

OfficeIMO.Drawing

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

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

Inheritance

  • ValueType
  • OfficeTextLine

Usage

Explore 8 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.

Accepted by parameters 3

Constructors

public OfficeTextLine(string text, double width, double offsetX = 0) #

Creates a measured text line.

Parameters

text string required
Line text.
width double required
Measured line width in the same coordinate space as the caller's font size.
offsetX double = 0 optional
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.