# HtmlSemanticSourceLocation

Stable provenance for a semantic value interpreted from source HTML.

Class 

`OfficeIMO.Html`

**Namespace**

`OfficeIMO.Html`

**Assembly**

`OfficeIMO.Html`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[HtmlSemanticSourceLocation.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Semantics/HtmlSemanticSourceLocation.cs#L32)

**Modifiers**

sealed

Stable provenance for a semantic value interpreted from source HTML.

## Inheritance

- object
- HtmlSemanticSourceLocation

## Usage

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

- Property [HtmlFeaturePreflightResult.FirstSourceLocation](/api/html/officeimo-html-htmlfeaturepreflightresult/#property-firstsourcelocation)
- Property [HtmlSemanticBlock.SourceLocation](/api/html/officeimo-html-htmlsemanticblock/#property-sourcelocation)
- Property [HtmlSemanticResource.SourceLocation](/api/html/officeimo-html-htmlsemanticresource/#property-sourcelocation)
- Property [HtmlSemanticRun.SourceLocation](/api/html/officeimo-html-htmlsemanticrun/#property-sourcelocation)
- Property [HtmlSemanticSection.SourceLocation](/api/html/officeimo-html-htmlsemanticsection/#property-sourcelocation)
- Property [HtmlSemanticTableCell.SourceLocation](/api/html/officeimo-html-htmlsemantictablecell/#property-sourcelocation)
- Property [HtmlSemanticTableRow.SourceLocation](/api/html/officeimo-html-htmlsemantictablerow/#property-sourcelocation)

### Accepted by parameters 3

- Constructor [HtmlDiagnostic.HtmlDiagnostic](/api/html/officeimo-html-htmldiagnostic/#constructor-ctor-string-string-string-officeimo-html-htmldiagnosticseverity-string-string-officeimo-officeconversionlosskind-officeimo-html-htmlsemanticsourcelocation-string) parameter `sourceLocation`
- Method [HtmlDiagnostic.WithProvenance](/api/html/officeimo-html-htmldiagnostic/#method-withprovenance-officeimo-html-htmlsemanticsourcelocation-string) parameter `sourceLocation`
- Method [HtmlDiagnosticReport.Add](/api/html/officeimo-html-htmldiagnosticreport/#method-add-string-string-string-officeimo-html-htmldiagnosticseverity-string-string-officeimo-officeconversionlosskind-officeimo-html-htmlsemanticsourcelocation-string) parameter `sourceLocation`

Filter members 

Show inherited

## Methods

`public override string ToString()` [#](#method-tostring)

[HtmlSemanticSourceLocation.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Semantics/HtmlSemanticSourceLocation.cs#L32)

Returns a string that represents the current object.

Returns

`string` A string that represents the current object.

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

## Properties

`public string Selector { get; }` [#](#property-selector)

[HtmlSemanticSourceLocation.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Semantics/HtmlSemanticSourceLocation.cs#L17)

Deterministic CSS-like path identifying the source element.

`public string ElementName { get; }` [#](#property-elementname)

[HtmlSemanticSourceLocation.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Semantics/HtmlSemanticSourceLocation.cs#L20)

Lower-case source element name.

`public int Line { get; }` [#](#property-line)

[HtmlSemanticSourceLocation.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Semantics/HtmlSemanticSourceLocation.cs#L23)

One-based source line, or zero when the parser has no source reference.

`public int Column { get; }` [#](#property-column)

[HtmlSemanticSourceLocation.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Semantics/HtmlSemanticSourceLocation.cs#L26)

One-based source column, or zero when the parser has no source reference.

`public int Index { get; }` [#](#property-index)

[HtmlSemanticSourceLocation.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Html/Semantics/HtmlSemanticSourceLocation.cs#L29)

Zero-based character index, or -1 when unavailable.

<!-- PowerForge markdown artifact sha256:9B1C62EEE163DEEAD1A8661BBBED91E74AB7EE51D5970D62A3F453192624D576 -->
