In This Article

TokenClassificationTag Class

Represents an ITag that can be used to associate an IClassificationType and an IToken with some text range by implementing IClassificationTag and ITokenTag.

public class TokenClassificationTag : IClassificationTag, ITokenTag, ITag
Inheritance:
Object Object
Implements:
IClassificationTag ITokenTag ITag

Constructors

TokenClassificationTag()

Initializes a new instance of the TokenClassificationTag class.

public TokenClassificationTag()

TokenClassificationTag(IToken, IClassificationType)

Initializes a new instance of the TokenClassificationTag class.

public TokenClassificationTag(IToken token, IClassificationType classificationType)
Parameter Type Description
token IToken

The lexer IToken associated with this tag.

classificationType IClassificationType

The IClassificationType associated with the tag.

Properties

ClassificationType

Gets or sets the IClassificationType associated with the tag.

public IClassificationType ClassificationType { get; set; }

Property Value

IClassificationType:

The IClassificationType associated with the tag.

Token

Gets or sets the lexer IToken associated with this tag.

public IToken Token { get; set; }

Property Value

IToken:

The lexer IToken associated with this tag.

Methods

ToString()

Converts the object to a String.

public override string ToString()

Returns

String:

A string whose value represents this object.

Inherited Members