API Reference
Struct
HtmlCssToken
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.
Returned or exposed by
- Property HtmlCssStyleBlock.Tokens
- Property HtmlCssStyleSheet.Tokens
- Property HtmlCssSyntaxDocument.Tokens
- Method HtmlCssTokenizer.Tokenize
- Property HtmlCssTokenValue.Token
Methods
public String GetText(String source) #Returns:
StringReads the exact authored token text from the source used to tokenize it.
Parameters
- source System.String
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from ValueType
Parameters
- obj Object
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.