Source.Recolorize Method

Updates the syntax highlighting on the specified range of lines.

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

Syntax

'Declaration
Public Sub Recolorize ( _
    startLine As Integer, _
    endLine As Integer _
)
public void Recolorize(
    int startLine,
    int endLine
)
public:
void Recolorize(
    int startLine, 
    int endLine
)
member Recolorize : 
        startLine:int * 
        endLine:int -> unit
public function Recolorize(
    startLine : int, 
    endLine : int
)

Parameters

  • startLine
    Type: Int32

    The first line to update.

  • endLine
    Type: Int32

    The last line to update.

Remarks

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.

.NET Framework Security

See Also

Reference

Source Class

Microsoft.VisualStudio.Package Namespace