# IWorkTextStyle

Character formatting recovered from an iWork text style.

Class 

`OfficeIMO.IWork`

**Namespace**

`OfficeIMO.IWork`

**Assembly**

`OfficeIMO.IWork`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[IWorkText.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.IWork/IWorkText.cs#L70)

**Modifiers**

sealed

Character formatting recovered from an iWork text style.

## Inheritance

- object
- IWorkTextStyle

## Usage

Explore 2 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 2

- Property [IWorkParagraphStyle.TextStyle](/api/iwork/officeimo-iwork-iworkparagraphstyle/#property-textstyle)
- Property [IWorkTextRun.Style](/api/iwork/officeimo-iwork-iworktextrun/#property-style)

Filter members 

Show inherited

## 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? Name { get; }` [#](#property-name)

[IWorkText.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.IWork/IWorkText.cs#L70)

Gets the source style name, when present.

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

[IWorkText.cs:72](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.IWork/IWorkText.cs#L72)

Gets the explicit bold setting.

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

[IWorkText.cs:74](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.IWork/IWorkText.cs#L74)

Gets the explicit italic setting.

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

[IWorkText.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.IWork/IWorkText.cs#L76)

Gets the explicit underline setting.

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

[IWorkText.cs:78](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.IWork/IWorkText.cs#L78)

Gets the explicit strikethrough setting.

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

[IWorkText.cs:80](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.IWork/IWorkText.cs#L80)

Gets the font size in points.

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

[IWorkText.cs:82](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.IWork/IWorkText.cs#L82)

Gets the font family name.

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

[IWorkText.cs:84](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.IWork/IWorkText.cs#L84)

Gets the foreground color.

`public IWorkColor? BackgroundColor { get; }` [#](#property-backgroundcolor)

[IWorkText.cs:86](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.IWork/IWorkText.cs#L86)

Gets the background or highlight color.

`public double? CharacterTrackingEm { get; }` [#](#property-charactertrackingem)

[IWorkText.cs:88](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.IWork/IWorkText.cs#L88)

Gets additional character spacing as a fraction of the effective font size. Zero explicitly clears inherited tracking.

`public double? CharacterSpacingPoints { get; }` [#](#property-characterspacingpoints)

[IWorkText.cs:90](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.IWork/IWorkText.cs#L90)

Gets character spacing in points when tracking and its effective font size are known.

<!-- PowerForge markdown artifact sha256:573B3F0F5CA0D80E75F7EEDDE02EFD2E315D2A9D3352C85880CFD9EE38918AD5 -->
