Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

HtmlCssSyntaxDocument

Namespace OfficeIMO.Html.Css
Assembly OfficeIMO.Html.Core
Modifiers abstract

Base type for a source-preserving CSS syntax result.

Inheritance

  • Object
  • HtmlCssSyntaxDocument

Methods

public HtmlCssSourcePosition GetPosition(Int32 offset) #
Returns: HtmlCssSourcePosition

Maps an exact UTF-16 offset to a one-based line and column.

Parameters

offset System.Int32 requiredposition: 0
public String ToCss() #
Returns: String

Returns the original input unchanged.

public override String ToString() #
Returns: String

Returns a string that represents the current object.

Returns

A string that represents the current object.

Properties

public String Source { get; } #

Exact original CSS input.

public IReadOnlyList<HtmlCssToken> Tokens { get; } #

All lexical tokens, including trivia and the final end-of-input token.

public IReadOnlyList<HtmlCssSyntaxNode> Contents { get; } #

Rules, declarations, and invalid recovered source in authored order.

public IReadOnlyList<HtmlCssSyntaxDiagnostic> Diagnostics { get; } #

Syntax recovery diagnostics. Unknown names and values do not produce diagnostics.