Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

HtmlCssSyntaxParser

OfficeIMO.Html.Css

Namespace
OfficeIMO.Html.Css
Assembly
OfficeIMO.Html.Core
Source revision
56dd0d38e0b5 with working tree changes
Modifiers
static

Parses provider-independent CSS rules, declarations, and nested component values while retaining exact source.

Inheritance

  • object
  • HtmlCssSyntaxParser

Methods

public static HtmlCssStyleBlock ParseStyleBlock(string source, HtmlCssSyntaxOptions? options = null, CancellationToken cancellationToken = default) #

Parses the contents of a style block, such as a style attribute, preserving duplicate and unknown declarations together with nested rules and invalid recovered source.

Parameters

source string required
options OfficeIMO.Html.Css.HtmlCssSyntaxOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional
public static HtmlCssStyleSheet ParseStyleSheet(string source, HtmlCssSyntaxOptions? options = null, CancellationToken cancellationToken = default) #

Parses a stylesheet without validating selector or property grammars. Unknown at-rules, declarations, comments, whitespace, and recovered invalid source remain available.

Parameters

source string required
options OfficeIMO.Html.Css.HtmlCssSyntaxOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional