Condividi tramite


Colorizer.GetStateAtEndOfLine(Int32, Int32, IntPtr, Int32) Method

Definition

Returns the parsing state at the end of the specified line.

public:
 virtual int GetStateAtEndOfLine(int line, int length, IntPtr ptr, int state);
public virtual int GetStateAtEndOfLine (int line, int length, IntPtr ptr, int state);
abstract member GetStateAtEndOfLine : int * int * nativeint * int -> int
override this.GetStateAtEndOfLine : int * int * nativeint * int -> int
Public Overridable Function GetStateAtEndOfLine (line As Integer, length As Integer, ptr As IntPtr, state As Integer) As Integer

Parameters

line
Int32

[in] The line number from where the text came from.

length
Int32

[in] The length of the text to examine.

ptr
IntPtr

nativeint

[in] An unmarshaled pointer to the text. The example in ColorizeLine(Int32, Int32, IntPtr, Int32, UInt32[]) shows how to marshal this pointer to a string.

state
Int32

[in] The parsing state at the beginning of the line.

Returns

Returns the parsing state at the end of the line.

Implements

Remarks

This method is typically called to obtain the parse state to be used as the initial state for the following line.

This method is an implementation of GetStateAtEndOfLine.

The base method returns the value from a call to ColorizeLine (the attributes array is essentially ignored).

Applies to