# OdpRun

An XML-backed presentation inline text run.

Class 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[OdpText.cs:171](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L171)

**Modifiers**

sealed

An XML-backed presentation inline text run.

## Inheritance

- object
- OdpRun

## Usage

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

- Method [OdpHyperlink.AddRun](/api/open-document/officeimo-opendocument-odphyperlink/#method-addrun-string)
- Property [OdpInlineNode.Run](/api/open-document/officeimo-opendocument-odpinlinenode/#property-run)
- Method [OdpParagraph.AddRun](/api/open-document/officeimo-opendocument-odpparagraph/#method-addrun-string)
- Property [OdpParagraph.Runs](/api/open-document/officeimo-opendocument-odpparagraph/#property-runs)
- Method [OdpRun.AddRun](/api/open-document/officeimo-opendocument-odprun/#method-addrun-string)
- Method [OdpRun.AddText](/api/open-document/officeimo-opendocument-odprun/#method-addtext-string)
- Method [OdpRun.TransformTextCase](/api/open-document/officeimo-opendocument-odprun/#method-transformtextcase-officeimo-drawing-officetextcase-globalization-cultureinfo)

Filter members 

Show inherited

## Methods

`public OdpHyperlink AddHyperlink(string text, string href)` [#](#method-addhyperlink-string-string)

[OdpText.cs:187](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L187)

Appends a hyperlink inside this run without fetching its target.

Parameters

**text string required**

**href string required**

Returns

`OdpHyperlink`

`public OdpRun AddRun(string? text = null)` [#](#method-addrun-string)

[OdpText.cs:178](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L178)

Appends a nested styled run.

Parameters

**text string? = null optional**

Returns

`OdpRun`

`public OdpRun AddText(string text)` [#](#method-addtext-string)

[OdpText.cs:171](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L171)

Appends text after existing child nodes.

Parameters

**text string required**

Returns

`OdpRun`

`public OdpRun TransformTextCase(OfficeTextCase textCase, CultureInfo? culture = null)` [#](#method-transformtextcase-officeimo-drawing-officetextcase-globalization-cultureinfo)

[OdpText.cs:240](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L240)

Changes the stored run text casing while preserving its text style.

Parameters

**textCase OfficeIMO.Drawing.OfficeTextCase required**

**culture System.Globalization.CultureInfo? = null optional**

Returns

`OdpRun`

## 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; set; }` [#](#property-text)

[OdpText.cs:165](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L165)

Decoded run text.

`public IReadOnlyList<OdpInlineNode> InlineNodes { get; }` [#](#property-inlinenodes)

[OdpText.cs:167](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L167)

Ordered text, runs, and hyperlinks inside this run.

`public string? StyleName { get; set; }` [#](#property-stylename)

[OdpText.cs:197](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L197)

Referenced text style name.

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

[OdpText.cs:199](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L199)

Explicit or inherited bold state.

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

[OdpText.cs:201](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L201)

Explicit or inherited italic state.

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

[OdpText.cs:203](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L203)

Explicit or inherited underline state.

`public OdfTextDecorationStyle? UnderlineStyle { get; set; }` [#](#property-underlinestyle)

[OdpText.cs:205](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L205)

Explicit or inherited native underline style.

`public OdfTextDecorationType? UnderlineType { get; set; }` [#](#property-underlinetype)

[OdpText.cs:207](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L207)

Explicit or inherited native underline line count.

`public bool UsesNonSolidUnderlineStyle { get; }` [#](#property-usesnonsolidunderlinestyle)

[OdpText.cs:209](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L209)

Whether the effective underline uses a non-solid ODF decoration style.

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

[OdpText.cs:211](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L211)

Explicit or inherited strike-through state.

`public OdfTextDecorationStyle? LineThroughStyle { get; set; }` [#](#property-linethroughstyle)

[OdpText.cs:213](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L213)

Explicit or inherited native line-through style.

`public OdfTextDecorationType? LineThroughType { get; set; }` [#](#property-linethroughtype)

[OdpText.cs:215](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L215)

Explicit or inherited native line-through line count.

`public bool UsesNonSolidLineThroughStyle { get; }` [#](#property-usesnonsolidlinethroughstyle)

[OdpText.cs:217](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L217)

Whether the effective line-through uses a non-solid ODF decoration style.

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

[OdpText.cs:219](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L219)

Explicit or inherited font size.

`public OdfTextPosition? TextPosition { get; set; }` [#](#property-textposition)

[OdpText.cs:221](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L221)

Explicit or inherited baseline placement.

`public OdfTextTransform? TextTransform { get; set; }` [#](#property-texttransform)

[OdpText.cs:223](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L223)

Explicit or inherited display-time case transformation.

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

[OdpText.cs:225](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L225)

Explicit or inherited small-cap display formatting.

`public string? FontFamily { get; set; }` [#](#property-fontfamily)

[OdpText.cs:227](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L227)

Explicit or inherited font family.

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

[OdpText.cs:229](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L229)

Explicit or inherited text color.

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

[OdpText.cs:232](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L232)

Explicit or inherited text background color.

`public bool HasTextBackgroundOverride { get; }` [#](#property-hastextbackgroundoverride)

[OdpText.cs:236](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpText.cs#L236)

Whether an inline style sets a text background, including transparent.

<!-- PowerForge markdown artifact sha256:8885168AF453AF708EBE491197A8DE40EEDDCDC627B890C2334A71D9ACCC3EFA -->
