# HtmlCssSourceSpan

An exact UTF-16 range in the original CSS source.

Struct 

`OfficeIMO.Html.Css`

**Namespace**

`OfficeIMO.Html.Css`

**Assembly**

`OfficeIMO.Html.Core`

**Source revision**

`56dd0d38e0b5` with working tree changes

**Source**

[HtmlCssSyntaxNode.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssSyntaxNode.cs#L9)

**Base**

`ValueType`

**Implements**

`IEquatable<HtmlCssSourceSpan>`

**Modifiers**

sealed

An exact UTF-16 range in the original CSS source.

## Inheritance

- ValueType
- HtmlCssSourceSpan

## Usage

Explore 13 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 12

- Property [HtmlCssAtRule.Span](/api/html-core/officeimo-html-css-htmlcssatrule/#property-span)
- Property [HtmlCssComponentValue.Span](/api/html-core/officeimo-html-css-htmlcsscomponentvalue/#property-span)
- Property [HtmlCssDeclaration.Span](/api/html-core/officeimo-html-css-htmlcssdeclaration/#property-span)
- Property [HtmlCssDeclaration.ValueSpan](/api/html-core/officeimo-html-css-htmlcssdeclaration/#property-valuespan)
- Property [HtmlCssFunctionValue.Span](/api/html-core/officeimo-html-css-htmlcssfunctionvalue/#property-span)
- Property [HtmlCssInvalidSyntax.Span](/api/html-core/officeimo-html-css-htmlcssinvalidsyntax/#property-span)
- Property [HtmlCssQualifiedRule.Span](/api/html-core/officeimo-html-css-htmlcssqualifiedrule/#property-span)
- Property [HtmlCssRule.Span](/api/html-core/officeimo-html-css-htmlcssrule/#property-span)
- Property [HtmlCssSimpleBlock.Span](/api/html-core/officeimo-html-css-htmlcsssimpleblock/#property-span)
- Property [HtmlCssSyntaxDiagnostic.Span](/api/html-core/officeimo-html-css-htmlcsssyntaxdiagnostic/#property-span)
- Property [HtmlCssSyntaxNode.Span](/api/html-core/officeimo-html-css-htmlcsssyntaxnode/#property-span)
- Property [HtmlCssTokenValue.Span](/api/html-core/officeimo-html-css-htmlcsstokenvalue/#property-span)

### Accepted by parameters 1

- Method [HtmlCssSourceSpan.Equals](/api/html-core/officeimo-html-css-htmlcsssourcespan/#method-equals-officeimo-html-css-htmlcsssourcespan) parameter `other`

Filter members 

Show inherited

## Constructors

`public HtmlCssSourceSpan(int offset, int length)` [#](#constructor-ctor-int32-int32)

[HtmlCssSyntaxNode.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssSyntaxNode.cs#L9)

Creates a source span.

Parameters

**offset int required**

**length int required**

## Methods

Equals 2 overloads

`public bool Equals(HtmlCssSourceSpan other)` [#](#method-equals-officeimo-html-css-htmlcsssourcespan)

[HtmlCssSyntaxNode.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssSyntaxNode.cs#L28)

Indicates whether the current object is equal to another object of the same type.

Parameters

**other OfficeIMO.Html.Css.HtmlCssSourceSpan required**

An object to compare with this object.

Returns

`bool` true if the current object is equal to the other parameter; otherwise, false.

`public override bool Equals(object? obj)` [#](#method-equals-object)

[HtmlCssSyntaxNode.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssSyntaxNode.cs#L30)

Indicates whether this instance and a specified object are equal.

Parameters

**obj object? required**

The object to compare with the current instance.

Returns

`bool` true if obj and this instance are the same type and represent the same value; otherwise, false.

`public override int GetHashCode()` [#](#method-gethashcode)

[HtmlCssSyntaxNode.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssSyntaxNode.cs#L32)

Returns the hash code for this instance.

Returns

`int` A 32-bit signed integer that is the hash code for this instance.

`public string GetText(string source)` [#](#method-gettext-string)

[HtmlCssSyntaxNode.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssSyntaxNode.cs#L23)

Reads this span from the source it belongs to.

Parameters

**source string required**

Returns

`string`

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

[HtmlCssSyntaxNode.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssSyntaxNode.cs#L34)

Returns the fully qualified type name of this instance.

Returns

`string` The fully qualified type name.

## Inherited Methods

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

## Properties

`public int Offset { get; }` [#](#property-offset)

[HtmlCssSyntaxNode.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssSyntaxNode.cs#L16)

Zero-based UTF-16 offset.

`public int Length { get; }` [#](#property-length)

[HtmlCssSyntaxNode.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssSyntaxNode.cs#L18)

Number of UTF-16 characters.

`public int End { get; }` [#](#property-end)

[HtmlCssSyntaxNode.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssSyntaxNode.cs#L20)

Offset immediately after this span.

<!-- PowerForge markdown artifact sha256:4E019266271C3620EEDAC5CE1C09FEC9FA820308E17472BDEFF6D3C476CA5F25 -->
