IVsTextColorState.ReColorizeLines(Int32, Int32) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Recalculates the color state of lines in a text buffer.
public:
int ReColorizeLines(int iTopLine, int iBottomLine);
public:
int ReColorizeLines(int iTopLine, int iBottomLine);
int ReColorizeLines(int iTopLine, int iBottomLine);
public int ReColorizeLines (int iTopLine, int iBottomLine);
abstract member ReColorizeLines : int * int -> int
Public Function ReColorizeLines (iTopLine As Integer, iBottomLine As Integer) As Integer
- iTopLine
- Int32
[in] First line to check.
- iBottomLine
- Int32
[in] Last line to check.
If 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.