# HtmlCssStyleSheet

A source-preserving CSS stylesheet syntax result.

Class 

`OfficeIMO.Html.Css`

**Namespace**

`OfficeIMO.Html.Css`

**Assembly**

`OfficeIMO.Html.Core`

**Source revision**

`56dd0d38e0b5` with working tree changes

**Source**

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

**Base**

`HtmlCssSyntaxDocument`

**Modifiers**

sealed

A source-preserving CSS stylesheet syntax result.

## Inheritance

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

## Usage

Explore 2 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.ParseStyleSheet](/api/html-core/officeimo-html-css-htmlcsssyntaxparser/#method-parsestylesheet-string-officeimo-html-css-htmlcsssyntaxoptions-threading-cancellationtoken)

### Accepted by parameters 1

- Method [HtmlCssNamespaceContext.FromStyleSheet](/api/html-core/officeimo-html-css-htmlcssnamespacecontext/#method-fromstylesheet-officeimo-html-css-htmlcssstylesheet) parameter `styleSheet`

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<HtmlCssRule> Rules { get; }` [#](#property-rules)

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

Top-level at-rules and qualified rules.

## 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:4FF7753A121E181D8DF17FC7CFA24DE2E24EBCDF7FB68B0CDAF354345C6D7595 -->
