Updates the syntax highlighting on the specified range of lines.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'宣言
Public Sub Recolorize ( _
startLine As Integer, _
endLine As Integer _
)
'使用
Dim instance As Source
Dim startLine As Integer
Dim endLine As Integer
instance.Recolorize(startLine, endLine)
public void Recolorize(
int startLine,
int endLine
)
public:
void Recolorize(
int startLine,
int endLine
)
public function Recolorize(
startLine : int,
endLine : int
)
Parameters
startLine
Type: System.Int32The first line to update.
endLine
Type: System.Int32The 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.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.