IVsTextColorState::ReColorizeLines Method (Int32, Int32)

 

Recalculates the color state of lines in a text buffer.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

int ReColorizeLines(
	int iTopLine,
	int iBottomLine
)

Parameters

iTopLine
Type: System::Int32

[in] First line to check.

iBottomLine
Type: System::Int32

[in] Last line to check.

Return Value

Type: System::Int32

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.

Return to top
Show: