IVsTextColorState::ReColorizeLines Method (Int32, Int32)
Visual Studio 2015
Recalculates the color state of lines in a text buffer.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Parameters
- iTopLine
-
Type:
System::Int32
[in] First line to check.
- iBottomLine
-
Type:
System::Int32
[in] Last line to check.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
HRESULT IVsTextColorState::ReColorizeLines( [in] long iTopLine, [in] long iBottomLine );
Colorizers that need to signal changes in color status of a set of lines call this method. The buffer's implementation calculates the color state at the end of each line, from iTopLine to iBottomLine, and continues calculating end of line (EOL) states until a line reports the same color state. The buffer then fires OnChangeAttributes to relay this color change to available views.
iTopLine = -1, iBottomLine = -1 is a special case that means colorize all lines.
Show: