# HtmlCssDeclaration

A declaration retained in source order without applying property grammar.

Class 

`OfficeIMO.Html.Css`

**Namespace**

`OfficeIMO.Html.Css`

**Assembly**

`OfficeIMO.Html.Core`

**Source revision**

`56dd0d38e0b5` with working tree changes

**Source**

[HtmlCssRules.cs:93](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssRules.cs#L93)

**Base**

`HtmlCssSyntaxNode`

**Modifiers**

sealed

A declaration retained in source order without applying property grammar.

## Inheritance

- [HtmlCssSyntaxNode](/api/html-core/officeimo-html-css-htmlcsssyntaxnode/)
- HtmlCssDeclaration

## Usage

Explore 5 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 4

- Property [HtmlCssAtRule.Declarations](/api/html-core/officeimo-html-css-htmlcssatrule/#property-declarations)
- Property [HtmlCssQualifiedRule.Declarations](/api/html-core/officeimo-html-css-htmlcssqualifiedrule/#property-declarations)
- Property [HtmlCssRule.Declarations](/api/html-core/officeimo-html-css-htmlcssrule/#property-declarations)
- Property [HtmlCssStyleBlock.Declarations](/api/html-core/officeimo-html-css-htmlcssstyleblock/#property-declarations)

### Accepted by parameters 1

- Method [HtmlCssPropertyParser.Parse](/api/html-core/officeimo-html-css-htmlcsspropertyparser/#method-parse-officeimo-html-css-htmlcssdeclaration-threading-cancellationtoken) parameter `declaration`

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 string GetText()` [#](#method-gettext)

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

Inherited from [HtmlCssSyntaxNode](/api/html-core/officeimo-html-css-htmlcsssyntaxnode/)

Returns

`string`

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

Inherited from object

Returns

`Type`

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

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

Inherited from [HtmlCssSyntaxNode](/api/html-core/officeimo-html-css-htmlcsssyntaxnode/)

Returns

`string`

## Properties

`public string Name { get; }` [#](#property-name)

[HtmlCssRules.cs:93](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssRules.cs#L93)

Decoded declaration name. Custom-property names remain case-sensitive.

`public HtmlCssSourceSpan ValueSpan { get; }` [#](#property-valuespan)

[HtmlCssRules.cs:95](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssRules.cs#L95)

Exact source range after the colon and before the declaration terminator.

`public string ValueText { get; }` [#](#property-valuetext)

[HtmlCssRules.cs:97](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssRules.cs#L97)

Exact authored text after the colon and before the declaration terminator.

`public IReadOnlyList<HtmlCssComponentValue> Values { get; }` [#](#property-values)

[HtmlCssRules.cs:99](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssRules.cs#L99)

Nested component values in authored order, including comments and whitespace.

`public bool IsImportant { get; }` [#](#property-isimportant)

[HtmlCssRules.cs:101](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssRules.cs#L101)

Whether the final non-trivia value tokens form !important.

`public bool IsCustomProperty { get; }` [#](#property-iscustomproperty)

[HtmlCssRules.cs:103](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssRules.cs#L103)

Whether this is a case-sensitive custom property.

## Inherited Properties

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

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

Inherited from [HtmlCssSyntaxNode](/api/html-core/officeimo-html-css-htmlcsssyntaxnode/)

`public HtmlCssSourceSpan Span { get; }` [#](#property-span)

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

Inherited from [HtmlCssSyntaxNode](/api/html-core/officeimo-html-css-htmlcsssyntaxnode/)

<!-- PowerForge markdown artifact sha256:A7B751DE6BC3CA4BA3EF1AA46A89C1A522BC886D6C7B324D2C3B39E81E9ED34D -->
