Colorizer::GetStateAtEndOfLine Method (Int32, Int32, IntPtr, Int32)
Visual Studio 2015
Returns the parsing state at the end of the specified line.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
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.
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).
Show: