# OneNoteTextStyle

Character formatting for a text run.

Class 

`OfficeIMO.OneNote`

**Namespace**

`OfficeIMO.OneNote`

**Assembly**

`OfficeIMO.OneNote`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[OneNoteContent.cs:219](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteContent.cs#L219)

**Modifiers**

sealed

Character formatting for a text run.

## Inheritance

- object
- OneNoteTextStyle

## Usage

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

- Property [OneNoteTextRun.Style](/api/onenote/officeimo-onenote-onenotetextrun/#property-style)

Filter members 

Show inherited

## Constructors

`public OneNoteTextStyle()` [#](#constructor-ctor)

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

[OneNoteContent.cs:219](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteContent.cs#L219)

Font family.

`public double? FontSize { get; set; }` [#](#property-fontsize)

[OneNoteContent.cs:222](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteContent.cs#L222)

Font size in points.

`public uint? ColorArgb { get; set; }` [#](#property-colorargb)

[OneNoteContent.cs:225](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteContent.cs#L225)

Font color encoded as ARGB.

`public uint? HighlightColorArgb { get; set; }` [#](#property-highlightcolorargb)

[OneNoteContent.cs:228](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteContent.cs#L228)

Highlight color encoded as ARGB.

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

[OneNoteContent.cs:231](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteContent.cs#L231)

Whether bold formatting is active.

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

[OneNoteContent.cs:234](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteContent.cs#L234)

Whether italic formatting is active.

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

[OneNoteContent.cs:237](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteContent.cs#L237)

Whether underline formatting is active.

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

[OneNoteContent.cs:240](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteContent.cs#L240)

Whether strikethrough formatting is active.

`public bool? Superscript { get; set; }` [#](#property-superscript)

[OneNoteContent.cs:243](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteContent.cs#L243)

Whether superscript formatting is active.

`public bool? Subscript { get; set; }` [#](#property-subscript)

[OneNoteContent.cs:246](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteContent.cs#L246)

Whether subscript formatting is active.

`public uint? LanguageId { get; set; }` [#](#property-languageid)

[OneNoteContent.cs:249](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteContent.cs#L249)

LCID language identifier.

`public bool? IsMath { get; set; }` [#](#property-ismath)

[OneNoteContent.cs:252](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteContent.cs#L252)

Whether OneNote marks this run as mathematical content.

`public bool? Hidden { get; set; }` [#](#property-hidden)

[OneNoteContent.cs:255](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteContent.cs#L255)

Whether the run is hidden text.

<!-- PowerForge markdown artifact sha256:626574B8382501A063540CB223A30B42EF0E1805ECDD7E35C7EC61F40D706DD3 -->
