Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Struct

HtmlCssToken

Namespace OfficeIMO.Html.Css
Assembly OfficeIMO.Html.Core
Base ValueType
Modifiers sealed

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

Inheritance

  • ValueType
  • HtmlCssToken

Usage

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) #
Returns: String

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

Parameters

source System.String requiredposition: 0

Properties

public HtmlCssTokenKind Kind { get; } #

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

public Int32 Offset { get; } #

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

public Int32 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 Boolean IsIdentifierHash { get; } #

Whether a hash token has the CSS identifier flag.