다음을 통해 공유


Colorizer.GetColorInfo Method

Returns the parsing state at the end of the line without returning any colorization information.

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

Syntax

‘선언
Public Overridable Function GetColorInfo ( _
    line As String, _
    length As Integer, _
    state As Integer _
) As Integer
public virtual int GetColorInfo(
    string line,
    int length,
    int state
)

Parameters

  • state
    Type: System.Int32
    [in] The initial parsing state of the line.

Return Value

Type: System.Int32
Returns the parsing state at the end of the line.

Remarks

This method essentially does what ColorizeLine does but this method does not return any color information, only the parsing state at the end of the line.

The base method calls the scanner's ScanTokenAndProvideInfoAboutIt and caches the result before returning the state. This cached information is used in GetLineInfo.

.NET Framework Security

See Also

Reference

Colorizer Class

Microsoft.VisualStudio.Package Namespace