Source::Recolorize Method (Int32, Int32)

 

Updates the syntax highlighting on the specified range of lines.

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

public:
void Recolorize(
	int startLine,
	int endLine
)

Parameters

startLine
Type: System::Int32

The first line to update.

endLine
Type: System::Int32

The last line to update.

This method calls the ReColorizeLines method on the IVsTextColorState interface (which was obtained from the IVsTextLines object passed to the Source class constructor).

If startLine is -1 and endLine is -1, then update the color on all lines in the source.

Return to top
Show: