Colorizer::GetColorInfo Method (String^, Int32, Int32)

 

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

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
virtual int GetColorInfo(
	String^ line,
	int length,
	int state
)

Parameters

line
Type: System::String^

[in] The text of the line.

length
Type: System::Int32

[in] The length of the line.

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.

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.

Return to top
Show: