Condividi tramite


Colorizer.GetColorInfo(String, Int32, Int32) Method

Definition

Returns the parsing state at the end of the line without returning any colorization information.

public:
 virtual int GetColorInfo(System::String ^ line, int length, int state);
public:
 virtual int GetColorInfo(Platform::String ^ line, int length, int state);
 virtual int GetColorInfo(std::wstring const & line, int length, int state);
public virtual int GetColorInfo (string line, int length, int state);
abstract member GetColorInfo : string * int * int -> int
override this.GetColorInfo : string * int * int -> int
Public Overridable Function GetColorInfo (line As String, length As Integer, state As Integer) As Integer

Parameters

line
String

[in] The text of the line.

length
Int32

[in] The length of the line.

state
Int32

[in] The initial parsing state of the line.

Returns

Returns the parsing state at the end of the line.

Remarks

This method essentially does what ColorizeLine does but this method does not return any color information, only the parsing state at the end of the line.

The base method calls the scanner's ScanTokenAndProvideInfoAboutIt and caches the result before returning the state. This cached information is used in GetLineInfo.

Applies to