# HtmlCssStyleBlock

A source-preserving CSS style-block result for inline declarations or nested rule content.

Class 

`OfficeIMO.Html.Css`

**Namespace**

`OfficeIMO.Html.Css`

**Assembly**

`OfficeIMO.Html.Core`

**Source revision**

`56dd0d38e0b5` with working tree changes

**Source**

[HtmlCssStyleSheet.cs:74](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssStyleSheet.cs#L74)

**Base**

`HtmlCssSyntaxDocument`

**Modifiers**

sealed

A source-preserving CSS style-block result for inline declarations or nested rule content.

## Inheritance

- [HtmlCssSyntaxDocument](/api/html-core/officeimo-html-css-htmlcsssyntaxdocument/)
- HtmlCssStyleBlock

## Usage

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

- Method [HtmlCssSyntaxParser.ParseStyleBlock](/api/html-core/officeimo-html-css-htmlcsssyntaxparser/#method-parsestyleblock-string-officeimo-html-css-htmlcsssyntaxoptions-threading-cancellationtoken)

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 HtmlCssSourcePosition GetPosition(int offset)` [#](#method-getposition-int32)

[HtmlCssStyleSheet.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssStyleSheet.cs#L37)

Inherited from [HtmlCssSyntaxDocument](/api/html-core/officeimo-html-css-htmlcsssyntaxdocument/)

Parameters

**offset int required**

Returns

`HtmlCssSourcePosition`

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

Inherited from object

Returns

`Type`

`public string ToCss()` [#](#method-tocss)

[HtmlCssStyleSheet.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssStyleSheet.cs#L44)

Inherited from [HtmlCssSyntaxDocument](/api/html-core/officeimo-html-css-htmlcsssyntaxdocument/)

Returns

`string`

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

[HtmlCssStyleSheet.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssStyleSheet.cs#L46)

Inherited from [HtmlCssSyntaxDocument](/api/html-core/officeimo-html-css-htmlcsssyntaxdocument/)

Returns

`string`

## Properties

`public IReadOnlyList<HtmlCssDeclaration> Declarations { get; }` [#](#property-declarations)

[HtmlCssStyleSheet.cs:74](https://github.com/EvotecIT/OfficeIMO/blob/56dd0d38e0b526611c1af001c026f8c72600880f/OfficeIMO.Html.Core/Css/HtmlCssStyleSheet.cs#L74)

Direct declarations in authored order. Nested rules remain in [HtmlCssSyntaxDocument.Contents](/api/html-core/officeimo-html-css-htmlcsssyntaxdocument/).

## Inherited Properties

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

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

Inherited from [HtmlCssSyntaxDocument](/api/html-core/officeimo-html-css-htmlcsssyntaxdocument/)

`public IReadOnlyList<HtmlCssToken> Tokens { get; }` [#](#property-tokens)

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

Inherited from [HtmlCssSyntaxDocument](/api/html-core/officeimo-html-css-htmlcsssyntaxdocument/)

`public IReadOnlyList<HtmlCssSyntaxNode> Contents { get; }` [#](#property-contents)

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

Inherited from [HtmlCssSyntaxDocument](/api/html-core/officeimo-html-css-htmlcsssyntaxdocument/)

`public IReadOnlyList<HtmlCssSyntaxDiagnostic> Diagnostics { get; }` [#](#property-diagnostics)

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

Inherited from [HtmlCssSyntaxDocument](/api/html-core/officeimo-html-css-htmlcsssyntaxdocument/)

<!-- PowerForge markdown artifact sha256:9931450AC05B867501D99D57AF32F3D1F4E5ED1EA81343C9B00369CFB9F2F4EE -->
