Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

IWorkTextRunData

OfficeIMO.IWork

Namespace
OfficeIMO.IWork
Assembly
OfficeIMO.IWork
Source revision
273d35d5ba8a with working tree changes
Modifiers
sealed

An immutable character run for template-free native iWork creation.

Inheritance

  • object
  • IWorkTextRunData

Usage

Explore 9 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 5

Constructors

public IWorkTextRunData(string text, string fontName = "Arial", float fontSizePoints = 32, string color = "000000", bool bold = false, bool italic = false, bool underline = false, bool strikethrough = false) #

Creates a run with one font, size, opaque sRGB color and character decoration.

Parameters

text string required
fontName string = "Arial" optional
fontSizePoints float = 32 optional
color string = "000000" optional
bold bool = false optional
italic bool = false optional
underline bool = false optional
strikethrough bool = false optional

Properties

public string Text { get; } #

Gets text with normalized LF line breaks.

public string FontName { get; } #

Gets the requested native font name.

public float FontSizePoints { get; } #

Gets the font size in points.

public IWorkColor Color { get; } #

Gets the opaque sRGB foreground color.

public bool Bold { get; } #

Gets whether the run is bold.

public bool Italic { get; } #

Gets whether the run is italic.

public bool Underline { get; } #

Gets whether the run has a single underline.

public bool Strikethrough { get; } #

Gets whether the run has a single strikethrough.