# OdtHyperlink

An XML-backed ODT hyperlink. Targets are preserved and never fetched.

Class 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[OdtHyperlink.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtHyperlink.cs#L34)

**Modifiers**

sealed

An XML-backed ODT hyperlink. Targets are preserved and never fetched.

## Inheritance

- object
- OdtHyperlink

## Usage

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

- Method [OdtHyperlink.AddText](/api/open-document/officeimo-opendocument-odthyperlink/#method-addtext-string)
- Method [OdtHyperlink.TransformTextCase](/api/open-document/officeimo-opendocument-odthyperlink/#method-transformtextcase-officeimo-drawing-officetextcase-globalization-cultureinfo)
- Property [OdtInlineNode.Hyperlink](/api/open-document/officeimo-opendocument-odtinlinenode/#property-hyperlink)
- Method [OdtParagraph.AddHyperlink](/api/open-document/officeimo-opendocument-odtparagraph/#method-addhyperlink-string-string)
- Property [OdtParagraph.Hyperlinks](/api/open-document/officeimo-opendocument-odtparagraph/#property-hyperlinks)
- Method [OdtSpan.AddHyperlink](/api/open-document/officeimo-opendocument-odtspan/#method-addhyperlink-string-string)

Filter members 

Show inherited

## Methods

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

[OdtHyperlink.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtHyperlink.cs#L41)

Appends a styled span inside this hyperlink.

Parameters

**text string? = null optional**

Returns

`OdtSpan`

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

[OdtHyperlink.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtHyperlink.cs#L34)

Appends display text after existing child nodes.

Parameters

**text string required**

Returns

`OdtHyperlink`

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

[OdtHyperlink.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtHyperlink.cs#L49)

Changes the hyperlink display text casing while preserving its target and text style.

Parameters

**textCase OfficeIMO.Drawing.OfficeTextCase required**

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

Returns

`OdtHyperlink`

## 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)

[OdtHyperlink.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtHyperlink.cs#L19)

Decoded display text.

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

[OdtHyperlink.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtHyperlink.cs#L30)

Ordered text and spans inside this hyperlink.

`public string Href { get; set; }` [#](#property-href)

[OdtHyperlink.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtHyperlink.cs#L55)

Link target.

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

[OdtHyperlink.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtHyperlink.cs#L66)

Referenced text style name.

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

[OdtHyperlink.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtHyperlink.cs#L70)

Explicit or inherited bold state.

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

[OdtHyperlink.cs:72](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtHyperlink.cs#L72)

Explicit or inherited italic state.

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

[OdtHyperlink.cs:74](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtHyperlink.cs#L74)

Explicit or inherited underline state.

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

[OdtHyperlink.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtHyperlink.cs#L76)

Explicit or inherited native underline style.

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

[OdtHyperlink.cs:78](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtHyperlink.cs#L78)

Explicit or inherited native underline line count.

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

[OdtHyperlink.cs:80](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtHyperlink.cs#L80)

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

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

[OdtHyperlink.cs:82](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtHyperlink.cs#L82)

Explicit or inherited strike-through state.

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

[OdtHyperlink.cs:84](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtHyperlink.cs#L84)

Explicit or inherited native line-through style.

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

[OdtHyperlink.cs:86](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtHyperlink.cs#L86)

Explicit or inherited native line-through line count.

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

[OdtHyperlink.cs:88](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtHyperlink.cs#L88)

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

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

[OdtHyperlink.cs:90](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtHyperlink.cs#L90)

Explicit or inherited font size.

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

[OdtHyperlink.cs:92](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtHyperlink.cs#L92)

Explicit or inherited baseline placement.

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

[OdtHyperlink.cs:94](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtHyperlink.cs#L94)

Explicit or inherited display-time case transformation.

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

[OdtHyperlink.cs:96](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtHyperlink.cs#L96)

Explicit or inherited small-cap display formatting.

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

[OdtHyperlink.cs:98](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtHyperlink.cs#L98)

Explicit or inherited font family.

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

[OdtHyperlink.cs:100](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtHyperlink.cs#L100)

Explicit or inherited text color.

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

[OdtHyperlink.cs:103](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtHyperlink.cs#L103)

Explicit or inherited text background color.

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

[OdtHyperlink.cs:107](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Text/OdtHyperlink.cs#L107)

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

<!-- PowerForge markdown artifact sha256:EAE057DA4091E3C3F98A35878CF3E54C1A1F89254EBAABDE87881C3C9AA9B54F -->
