Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Struct

HtmlCssToken

OfficeIMO.Html.Css

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

An immutable token with an exact span in the original UTF-16 source.

Inheritance

  • ValueType
  • HtmlCssToken

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.

Methods

public string GetText(string source) #

Reads the exact authored token text from the source used to tokenize it.

Parameters

source string required

Returns

string

Properties

public HtmlCssTokenKind Kind { get; } #

The lexical category; tokenization alone does not imply property or rendering support.

public int Offset { get; } #

Zero-based UTF-16 offset in the original input, before newline normalization.

public int Length { get; } #

Number of original UTF-16 characters, including delimiters and escapes.

public string? Value { get; } #

Decoded identifier, string, URL, dimension unit or delimiter; null for other categories.

public bool IsIdentifierHash { get; } #

Whether a hash token has the CSS identifier flag.