# OdfTextHyperlink

A native hyperlink whose target is preserved without network access.

Class 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`15caddadea70` with working tree changes

**Source**

[OdfTextHyperlink.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextHyperlink.cs#L6)

**Base**

`OdfTextContent`

**Modifiers**

sealed

A native hyperlink whose target is preserved without network access.

## Inheritance

- [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)
- OdfTextHyperlink

## Usage

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

- Method [OdfTextContent.AddHyperlink](/api/open-document/officeimo-opendocument-odftextcontent/#method-addhyperlink-string-string)
- Property [OdfTextContent.Hyperlinks](/api/open-document/officeimo-opendocument-odftextcontent/#property-hyperlinks)
- Method [OdfTextHyperlink.AddHyperlink](/api/open-document/officeimo-opendocument-odftexthyperlink/#method-addhyperlink-string-string)
- Method [OdfTextHyperlink.AddText](/api/open-document/officeimo-opendocument-odftexthyperlink/#method-addtext-string)
- Method [OdfTextHyperlink.TransformTextCase](/api/open-document/officeimo-opendocument-odftexthyperlink/#method-transformtextcase-officeimo-drawing-officetextcase-globalization-cultureinfo)
- Property [OdfTextHyperlink.Hyperlinks](/api/open-document/officeimo-opendocument-odftexthyperlink/#property-hyperlinks)
- Property [OdfTextNode.Hyperlink](/api/open-document/officeimo-opendocument-odftextnode/#property-hyperlink)
- Method [OdfTextParagraph.AddHyperlink](/api/open-document/officeimo-opendocument-odftextparagraph/#method-addhyperlink-string-string)
- Property [OdfTextParagraph.Hyperlinks](/api/open-document/officeimo-opendocument-odftextparagraph/#property-hyperlinks)
- Method [OdfTextRun.AddHyperlink](/api/open-document/officeimo-opendocument-odftextrun/#method-addhyperlink-string-string)
- Property [OdfTextRun.Hyperlinks](/api/open-document/officeimo-opendocument-odftextrun/#property-hyperlinks)

Filter members 

Show inherited

## Methods

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

[OdfTextHyperlink.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextHyperlink.cs#L6)

Appends native text and returns this inline.

Parameters

**text string required**

Returns

`OdfTextHyperlink`

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

[OdfTextHyperlink.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextHyperlink.cs#L8)

Transforms stored text and returns the same native receiver.

Parameters

**textCase OfficeIMO.Drawing.OfficeTextCase required**

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

Returns

`OdfTextHyperlink`

## Inherited Methods

`public OdfTextField AddField(OdfTextFieldKind kind, string? displayText = null)` [#](#method-addfield-odftextfieldkind-string)

[OdfTextContent.cs:84](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L84)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

Parameters

**kind OdfTextFieldKind required**

**displayText string? = null optional**

Returns

`OdfTextField`

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

[OdfTextContent.cs:77](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L77)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

Parameters

**text string required**

**href string required**

Returns

`OdfTextHyperlink`

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

[OdfTextContent.cs:72](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L72)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

Parameters

**text string? = null optional**

Returns

`OdfTextRun`

`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?`

`public XElement ToXml()` [#](#method-toxml)

[OdfTextContent.cs:91](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L91)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

Returns

`XElement`

## Properties

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

[OdfTextHyperlink.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextHyperlink.cs#L13)

Hyperlink target. Relative and absolute references remain as supplied.

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

[OdfTextHyperlink.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextHyperlink.cs#L17)

Optional target frame name.

## Inherited Properties

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

[OdfTextContent.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L15)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L17)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L19)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

`public IReadOnlyList<OdfTextRun> Runs { get; }` [#](#property-runs)

[OdfTextContent.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L21)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

`public IReadOnlyList<OdfTextHyperlink> Hyperlinks { get; }` [#](#property-hyperlinks)

[OdfTextContent.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L24)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

`public IReadOnlyList<OdfTextField> Fields { get; }` [#](#property-fields)

[OdfTextContent.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L27)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L31)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L33)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:35](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L35)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L37)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L39)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L41)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L43)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L45)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L47)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:53](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L53)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L58)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L62)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L64)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

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

[OdfTextContent.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/15caddadea7080f6e4b3027fdb95451a0210bdb1/OfficeIMO.OpenDocument/Text/OdfTextContent.cs#L66)

Inherited from [OdfTextContent](/api/open-document/officeimo-opendocument-odftextcontent/)

<!-- PowerForge markdown artifact sha256:0087EB14C0DDD8CD256AAC2558B5D41908320A5770462E67E2C705B84CC6531A -->
