Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

IWorkTextRunData

Namespace OfficeIMO.IWork
Assembly OfficeIMO.IWork
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", Single fontSizePoints = 32, String color = "000000", Boolean bold = false, Boolean italic = false, Boolean underline = false, Boolean strikethrough = false) #

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

Parameters

text System.String requiredposition: 0
fontName System.String = "Arial" optionalposition: 1
fontSizePoints System.Single = 32 optionalposition: 2
color System.String = "000000" optionalposition: 3
bold System.Boolean = false optionalposition: 4
italic System.Boolean = false optionalposition: 5
underline System.Boolean = false optionalposition: 6
strikethrough System.Boolean = false optionalposition: 7

Properties

public String Text { get; } #

Gets text with normalized LF line breaks.

public String FontName { get; } #

Gets the requested native font name.

public Single FontSizePoints { get; } #

Gets the font size in points.

public IWorkColor Color { get; } #

Gets the opaque sRGB foreground color.

public Boolean Bold { get; } #

Gets whether the run is bold.

public Boolean Italic { get; } #

Gets whether the run is italic.

public Boolean Underline { get; } #

Gets whether the run has a single underline.

public Boolean Strikethrough { get; } #

Gets whether the run has a single strikethrough.