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

 

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

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
virtual int GetStateAtEndOfLine(
	int line,
	int length,
	IntPtr ptr,
	int state
)

Parameters

line
Type: System::Int32

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

length
Type: System::Int32

[in] The length of the text to examine.

ptr
Type: System::IntPtr

[in] An unmarshaled pointer to the text. The example in ColorizeLine shows how to marshal this pointer to a string.

state
Type: System::Int32

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

Return Value

Type: System::Int32

Returns the parsing state at the end of the line.

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).

Return to top
Show: