# HtmlRenderText

Positioned text segment retained as text for image and PDF backends.

Class 

`OfficeIMO.Html`

**Namespace**

`OfficeIMO.Html`

**Assembly**

`OfficeIMO.Html`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[HtmlRenderText.cs:142](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderText.cs#L142)

**Base**

`HtmlRenderVisual`

**Modifiers**

sealed

Positioned text segment retained as text for image and PDF backends.

## Inheritance

- [HtmlRenderVisual](/api/html/officeimo-html-htmlrendervisual/)
- HtmlRenderText

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)

[HtmlRenderText.cs:142](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderText.cs#L142)

Text content represented by this visual segment.

`public OfficeFontInfo Font { get; }` [#](#property-font)

[HtmlRenderText.cs:145](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderText.cs#L145)

Resolved font family, size, and compatibility style flags.

`public OfficeFontFaceDescriptor FontDescriptor { get; }` [#](#property-fontdescriptor)

[HtmlRenderText.cs:148](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderText.cs#L148)

Resolved CSS face weight, stretch, and slant requested for this text.

`public OfficeColor Color { get; }` [#](#property-color)

[HtmlRenderText.cs:151](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderText.cs#L151)

Resolved text color.

`public OfficeTextAlignment Alignment { get; }` [#](#property-alignment)

[HtmlRenderText.cs:154](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderText.cs#L154)

Resolved horizontal text alignment.

`public double LineHeight { get; }` [#](#property-lineheight)

[HtmlRenderText.cs:157](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderText.cs#L157)

Resolved line height in CSS pixels.

`public string? SemanticRole { get; }` [#](#property-semanticrole)

[HtmlRenderText.cs:164](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderText.cs#L164)

Optional semantic role such as heading, paragraph, or list item.

`public int? SemanticNodeId { get; }` [#](#property-semanticnodeid)

[HtmlRenderText.cs:167](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderText.cs#L167)

Stable operation-scoped semantic node identifier shared by fragments from the same source element.

`public double? TextAdvanceWidth { get; }` [#](#property-textadvancewidth)

[HtmlRenderText.cs:174](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderText.cs#L174)

Resolved signed glyph advance for positioned inline text, distinct from its non-negative clipping frame.

`public double? TextPaintWidth { get; }` [#](#property-textpaintwidth)

[HtmlRenderText.cs:177](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderText.cs#L177)

Measured glyph-paint width before CSS letter and word spacing are added to the positioned advance.

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

[HtmlRenderText.cs:180](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderText.cs#L180)

Resolved CSS underline pattern.

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

[HtmlRenderText.cs:183](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderText.cs#L183)

Resolved CSS strikethrough pattern.

`public OfficeColor DecorationColor { get; }` [#](#property-decorationcolor)

[HtmlRenderText.cs:186](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderText.cs#L186)

Resolved CSS color used to paint underlines and strikethroughs.

`public OfficeTextFeatureSettings FeatureSettings { get; }` [#](#property-featuresettings)

[HtmlRenderText.cs:189](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderText.cs#L189)

Resolved OpenType feature selections for this text run.

`public string FontPalette { get; }` [#](#property-fontpalette)

[HtmlRenderText.cs:192](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderText.cs#L192)

Resolved CSS font-palette value.

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

[HtmlRenderText.cs:195](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderText.cs#L195)

Resolved CSS script baseline.

`public int BaselineLevel { get; }` [#](#property-baselinelevel)

[HtmlRenderText.cs:198](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderText.cs#L198)

Resolved cumulative CSS script nesting level.

`public double BaselineScale { get; }` [#](#property-baselinescale)

[HtmlRenderText.cs:201](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderText.cs#L201)

Resolved cumulative CSS script font-size scale.

`public double BaselineOffset { get; }` [#](#property-baselineoffset)

[HtmlRenderText.cs:204](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderText.cs#L204)

Resolved cumulative CSS baseline displacement in layout units; negative values raise text.

## Inherited Properties

`public HtmlRenderVisualKind Kind { get; }` [#](#property-kind)

[HtmlRenderVisual.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderVisual.cs#L27)

Inherited from [HtmlRenderVisual](/api/html/officeimo-html-htmlrendervisual/)

`public double X { get; }` [#](#property-x)

[HtmlRenderVisual.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderVisual.cs#L30)

Inherited from [HtmlRenderVisual](/api/html/officeimo-html-htmlrendervisual/)

`public double Y { get; }` [#](#property-y)

[HtmlRenderVisual.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderVisual.cs#L33)

Inherited from [HtmlRenderVisual](/api/html/officeimo-html-htmlrendervisual/)

`public double Width { get; }` [#](#property-width)

[HtmlRenderVisual.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderVisual.cs#L36)

Inherited from [HtmlRenderVisual](/api/html/officeimo-html-htmlrendervisual/)

`public double Height { get; }` [#](#property-height)

[HtmlRenderVisual.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderVisual.cs#L39)

Inherited from [HtmlRenderVisual](/api/html/officeimo-html-htmlrendervisual/)

`public int PaintOrder { get; }` [#](#property-paintorder)

[HtmlRenderVisual.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderVisual.cs#L42)

Inherited from [HtmlRenderVisual](/api/html/officeimo-html-htmlrendervisual/)

`public string? LinkUri { get; }` [#](#property-linkuri)

[HtmlRenderVisual.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderVisual.cs#L45)

Inherited from [HtmlRenderVisual](/api/html/officeimo-html-htmlrendervisual/)

`public string? Source { get; }` [#](#property-source)

[HtmlRenderVisual.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Rendering/HtmlRenderVisual.cs#L48)

Inherited from [HtmlRenderVisual](/api/html/officeimo-html-htmlrendervisual/)

<!-- PowerForge markdown artifact sha256:485815AC0B5DFA8651AD7BB04BC58EAA536295471124402FAAE58414B9AC1EBF -->
