IVsTextColorState.ReColorizeLines Method
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)
Syntax
'Declaration
Function ReColorizeLines ( _
iTopLine As Integer, _
iBottomLine As Integer _
) As Integer
'Usage
Dim instance As IVsTextColorState
Dim iTopLine As Integer
Dim iBottomLine As Integer
Dim returnValue As Integer
returnValue = instance.ReColorizeLines(iTopLine, _
iBottomLine)
int ReColorizeLines(
int iTopLine,
int iBottomLine
)
int ReColorizeLines(
[InAttribute] int iTopLine,
[InAttribute] int iBottomLine
)
abstract ReColorizeLines :
iTopLine:int *
iBottomLine:int -> int
function ReColorizeLines(
iTopLine : int,
iBottomLine : int
) : int
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.
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.
.NET Framework Security
- 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.