Freigeben über


IVsTextColorState.ReColorizeLines(Int32, Int32) Method

Definition

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

Parameters

iTopLine
Int32

[in] First line to check.

iBottomLine
Int32

[in] Last line to check.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

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.

Applies to