Struct
HtmlCssToken
OfficeIMO.Html.Css
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.
Returned or exposed by 5
- Property HtmlCssStyleBlock.Tokens
- Property HtmlCssStyleSheet.Tokens
- Property HtmlCssSyntaxDocument.Tokens
- Method HtmlCssTokenizer.Tokenize
- Property HtmlCssTokenValue.Token
Methods
public string GetText(string source) #Reads the exact authored token text from the source used to tokenize it.
Parameters
- source string
Returns
stringInherited Methods
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.