Share via


TokenInfo Constructor (Int32, Int32, TokenType)

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

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'Declaration
Public Sub New ( _
    startIndex As Integer, _
    endIndex As Integer, _
    type As TokenType _
)
public TokenInfo(
    int startIndex,
    int endIndex,
    TokenType type
)
public:
TokenInfo(
    int startIndex, 
    int endIndex, 
    TokenType type
)
new : 
        startIndex:int * 
        endIndex:int * 
        type:TokenType -> TokenInfo
public function TokenInfo(
    startIndex : int, 
    endIndex : int, 
    type : TokenType
)

Parameters

  • startIndex
    Type: System.Int32
    [in] The first character of the token.
  • endIndex
    Type: System.Int32
    [in] The last character of the token.

Remarks

The token's color index and any token triggers must be specified after the object has been constructed.

.NET Framework Security

See Also

Reference

TokenInfo Class

TokenInfo Overload

Microsoft.VisualStudio.Package Namespace