# IWorkTextRunData

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

Class 

`OfficeIMO.IWork`

**Namespace**

`OfficeIMO.IWork`

**Assembly**

`OfficeIMO.IWork`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[IWorkTextRunData.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkTextRunData.cs#L9)

**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.

### Returned or exposed by 4

- Property [IWorkKeynoteTextBox.Runs](/api/iwork/officeimo-iwork-iworkkeynotetextbox/#property-runs)
- Property [IWorkPagesDocument.Footer](/api/iwork/officeimo-iwork-iworkpagesdocument/#property-footer)
- Property [IWorkPagesDocument.Header](/api/iwork/officeimo-iwork-iworkpagesdocument/#property-header)
- Property [IWorkPagesParagraphData.Runs](/api/iwork/officeimo-iwork-iworkpagesparagraphdata/#property-runs)

### Accepted by parameters 5

- Method [IWorkKeynoteSlideBuilder.AddRichText](/api/iwork/officeimo-iwork-iworkkeynoteslidebuilder/#method-addrichtext-collections-generic-ienumerable-officeimo-iwork-iworktextrundata-single-single-single-single) parameter `runs`
- Method [IWorkPagesDocument.AddRichParagraph](/api/iwork/officeimo-iwork-iworkpagesdocument/#method-addrichparagraph-collections-generic-ienumerable-officeimo-iwork-iworktextrundata) parameter `runs`
- Method [IWorkPagesDocument.SetFooter](/api/iwork/officeimo-iwork-iworkpagesdocument/#method-setfooter-officeimo-iwork-iworktextrundata-single) parameter `run`
- Method [IWorkPagesDocument.SetHeader](/api/iwork/officeimo-iwork-iworkpagesdocument/#method-setheader-officeimo-iwork-iworktextrundata-single) parameter `run`
- Method [IWorkPagesNumberedList.AddRichItem](/api/iwork/officeimo-iwork-iworkpagesnumberedlist/#method-addrichitem-collections-generic-ienumerable-officeimo-iwork-iworktextrundata-int32-nullable-system-int32-officeimo-iwork-iworkpagesparagraphlayout) parameter `runs`

Filter members 

Show inherited

## 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)` [#](#constructor-ctor-string-string-single-string-boolean-boolean-boolean-boolean)

[IWorkTextRunData.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkTextRunData.cs#L9)

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**

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string Text { get; }` [#](#property-text)

[IWorkTextRunData.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkTextRunData.cs#L21)

Gets text with normalized LF line breaks.

`public string FontName { get; }` [#](#property-fontname)

[IWorkTextRunData.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkTextRunData.cs#L23)

Gets the requested native font name.

`public float FontSizePoints { get; }` [#](#property-fontsizepoints)

[IWorkTextRunData.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkTextRunData.cs#L25)

Gets the font size in points.

`public IWorkColor Color { get; }` [#](#property-color)

[IWorkTextRunData.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkTextRunData.cs#L27)

Gets the opaque sRGB foreground color.

`public bool Bold { get; }` [#](#property-bold)

[IWorkTextRunData.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkTextRunData.cs#L29)

Gets whether the run is bold.

`public bool Italic { get; }` [#](#property-italic)

[IWorkTextRunData.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkTextRunData.cs#L31)

Gets whether the run is italic.

`public bool Underline { get; }` [#](#property-underline)

[IWorkTextRunData.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkTextRunData.cs#L33)

Gets whether the run has a single underline.

`public bool Strikethrough { get; }` [#](#property-strikethrough)

[IWorkTextRunData.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.IWork/Creation/IWorkTextRunData.cs#L35)

Gets whether the run has a single strikethrough.

<!-- PowerForge markdown artifact sha256:62C9F7EA70EB34C5672833FB7789F9B5519A2B8F352C94856B97AFE8E21BF879 -->
