# HtmlSemanticRun

Editable rich-text run shared by native adapters.

Class 

`OfficeIMO.Html`

**Namespace**

`OfficeIMO.Html`

**Assembly**

`OfficeIMO.Html`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[HtmlSemanticDocument.cs:261](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Semantics/HtmlSemanticDocument.cs#L261)

**Modifiers**

sealed

Editable rich-text run shared by native adapters.

## Inheritance

- object
- HtmlSemanticRun

## Usage

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

- Property [HtmlSemanticBlock.Runs](/api/html/officeimo-html-htmlsemanticblock/#property-runs)
- Property [HtmlSemanticTable.CaptionRuns](/api/html/officeimo-html-htmlsemantictable/#property-captionruns)
- Property [HtmlSemanticTableCell.Runs](/api/html/officeimo-html-htmlsemantictablecell/#property-runs)

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

[HtmlSemanticDocument.cs:261](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Semantics/HtmlSemanticDocument.cs#L261)

Run text.

`public string? Hyperlink { get; }` [#](#property-hyperlink)

[HtmlSemanticDocument.cs:263](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Semantics/HtmlSemanticDocument.cs#L263)

Policy-normalized hyperlink, when present.

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

[HtmlSemanticDocument.cs:265](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Semantics/HtmlSemanticDocument.cs#L265)

Whether the run is bold.

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

[HtmlSemanticDocument.cs:267](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Semantics/HtmlSemanticDocument.cs#L267)

Whether the run is italic.

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

[HtmlSemanticDocument.cs:269](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Semantics/HtmlSemanticDocument.cs#L269)

Whether the run is underlined.

`public OfficeTextDecorationStyle UnderlineStyle { get; }` [#](#property-underlinestyle)

[HtmlSemanticDocument.cs:271](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Semantics/HtmlSemanticDocument.cs#L271)

Resolved underline pattern for targets that expose more than a Boolean underline flag.

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

[HtmlSemanticDocument.cs:273](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Semantics/HtmlSemanticDocument.cs#L273)

Whether the run is struck through.

`public OfficeTextDecorationStyle StrikethroughStyle { get; }` [#](#property-strikethroughstyle)

[HtmlSemanticDocument.cs:275](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Semantics/HtmlSemanticDocument.cs#L275)

Resolved strike-through pattern for targets that expose more than a Boolean strike flag.

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

[HtmlSemanticDocument.cs:277](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Semantics/HtmlSemanticDocument.cs#L277)

Whether the run is superscript.

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

[HtmlSemanticDocument.cs:279](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Semantics/HtmlSemanticDocument.cs#L279)

Whether the run is subscript.

`public OfficeTextBaseline Baseline { get; }` [#](#property-baseline)

[HtmlSemanticDocument.cs:281](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Semantics/HtmlSemanticDocument.cs#L281)

Resolved run baseline.

`public HtmlComputedStyle? Style { get; }` [#](#property-style)

[HtmlSemanticDocument.cs:285](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Semantics/HtmlSemanticDocument.cs#L285)

Computed style snapshot.

`public HtmlSemanticSourceLocation? SourceLocation { get; }` [#](#property-sourcelocation)

[HtmlSemanticDocument.cs:287](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Semantics/HtmlSemanticDocument.cs#L287)

Source provenance.

`public bool IsLineBreak { get; }` [#](#property-islinebreak)

[HtmlSemanticDocument.cs:289](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Semantics/HtmlSemanticDocument.cs#L289)

Whether this run represents an explicit HTML line break.

`public IReadOnlyDictionary<string, string> DataAttributes { get; }` [#](#property-dataattributes)

[HtmlSemanticDocument.cs:291](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Semantics/HtmlSemanticDocument.cs#L291)

Trusted converter metadata attached to the source run, keyed by normalized data-* attribute name.

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

[HtmlSemanticDocument.cs:293](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Semantics/HtmlSemanticDocument.cs#L293)

Nearest effective nontransparent inline background color, suitable for native text highlighting.

<!-- PowerForge markdown artifact sha256:05E26747A1B1F3F6A97FCE32C71A17FBC55E2FD099F07C76B063CC7C968F84C6 -->
