次の方法で共有


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.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Syntax

'宣言
Public Sub New ( _
    startIndex As Integer, _
    endIndex As Integer, _
    type As TokenType _
)
public TokenInfo(
    int startIndex,
    int endIndex,
    TokenType type
)

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