# HtmlRoundTripScore

Structural score comparing source HTML with generated or round-tripped HTML.

Class 

`OfficeIMO.Html`

**Namespace**

`OfficeIMO.Html`

**Assembly**

`OfficeIMO.Html`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[HtmlRoundTripScore.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Scoring/HtmlRoundTripScore.cs#L34)

**Modifiers**

sealed

Structural score comparing source HTML with generated or round-tripped HTML.

## Inheritance

- object
- HtmlRoundTripScore

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

- Property [HtmlCapabilityGalleryManifest.RoundTripScore](/api/html/officeimo-html-htmlcapabilitygallerymanifest/#property-roundtripscore)
- Method [HtmlRoundTripScorer.Compare](/api/html/officeimo-html-htmlroundtripscorer/#method-compare-string-string)

### Accepted by parameters 1

- Constructor [HtmlCapabilityGalleryManifest.HtmlCapabilityGalleryManifest](/api/html/officeimo-html-htmlcapabilitygallerymanifest/#constructor-ctor-officeimo-html-htmlcapabilitygalleryresult-officeimo-html-htmlconversionprofile-officeimo-html-htmlroundtripscore-officeimo-html-htmlresourcemanifest) parameter `roundTripScore`

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 int SchemaVersion { get; }` [#](#property-schemaversion)

[HtmlRoundTripScore.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Scoring/HtmlRoundTripScore.cs#L34)

Fidelity-score schema version used for this result.

`public double Score { get; }` [#](#property-score)

[HtmlRoundTripScore.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Scoring/HtmlRoundTripScore.cs#L37)

Overall score from 0 to 1.

`public int SourceNodeCount { get; }` [#](#property-sourcenodecount)

[HtmlRoundTripScore.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Scoring/HtmlRoundTripScore.cs#L40)

Logical node count in the source document.

`public int TargetNodeCount { get; }` [#](#property-targetnodecount)

[HtmlRoundTripScore.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Scoring/HtmlRoundTripScore.cs#L43)

Logical node count in the target document.

`public int MatchedFeatureCount { get; }` [#](#property-matchedfeaturecount)

[HtmlRoundTripScore.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Scoring/HtmlRoundTripScore.cs#L46)

Feature buckets with exact or near matches.

`public int ComparedFeatureCount { get; }` [#](#property-comparedfeaturecount)

[HtmlRoundTripScore.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Scoring/HtmlRoundTripScore.cs#L49)

Feature buckets compared by the scorer.

`public IReadOnlyDictionary<string, double> Metrics { get; }` [#](#property-metrics)

[HtmlRoundTripScore.cs:52](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Scoring/HtmlRoundTripScore.cs#L52)

Named scoring metrics from 0 to 1.

`public IReadOnlyDictionary<string, double> Dimensions { get; }` [#](#property-dimensions)

[HtmlRoundTripScore.cs:59](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Scoring/HtmlRoundTripScore.cs#L59)

Top-level v2 fidelity dimensions. Available dimensions are structure, text, styles, resources, annotations, formulas, charts, geometry, and artifact reload. Dimensions absent from both inputs are omitted rather than treated as perfect.

`public bool ArtifactReloadVerified { get; }` [#](#property-artifactreloadverified)

[HtmlRoundTripScore.cs:62](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Scoring/HtmlRoundTripScore.cs#L62)

Whether the score includes evidence produced after reopening the native artifact.

`public string? ArtifactKind { get; }` [#](#property-artifactkind)

[HtmlRoundTripScore.cs:65](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Scoring/HtmlRoundTripScore.cs#L65)

Caller-supplied artifact kind for reload evidence, such as DOCX, XLSX, or PPTX.

## Fields

`public const int CurrentSchemaVersion` [#](#field-currentschemaversion)

[HtmlRoundTripScore.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Scoring/HtmlRoundTripScore.cs#L31)

Current fidelity-score schema version.

Value: `2`

<!-- PowerForge markdown artifact sha256:87F15E01A51EA60F912EA6C538403640765F38CE39A4367718AC0FD6A451F77D -->
