Udostępnij za pośrednictwem


TokenInfo Class

Definition

Provides information about a particular token encountered by a language service's language parser.

public ref class TokenInfo
[Windows::Foundation::Metadata::WebHostHidden]
class TokenInfo
public class TokenInfo
type TokenInfo = class
Public Class TokenInfo
Inheritance
TokenInfo

Remarks

The IScanner scanner uses this class to provide information about each token parsed. This class identifies the token type, specifies a color index for the token, specifies the start and end characters of the token (relative to the current line being parsed), and specifies any triggers that can be handled based on the token's type. See each property of this class for more details on how and when these properties are used.

Constructors

TokenInfo()

Initializes a new instance of the TokenInfo class to the default values.

TokenInfo(Int32, Int32, TokenType)

Initializes a new instance of the TokenInfo class to the specified values.

Properties

Color

Determines the color index to use for the token.

EndIndex

Determines the index of the last character of the token.

StartIndex

Determines the index of the first character of the token.

Token

Language Specific

Trigger

Determines the various triggers that can be set for the token.

Type

Determines the type of the token.

Applies to