Colorizer.GetStateAtEndOfLine Method
Returns the parsing state at the end of the specified line.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'Declaration
Public Overridable Function GetStateAtEndOfLine ( _
line As Integer, _
length As Integer, _
ptr As IntPtr, _
state As Integer _
) As Integer
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 GetStateAtEndOfLine :
line:int *
length:int *
ptr:IntPtr *
state:int -> int
override GetStateAtEndOfLine :
line:int *
length:int *
ptr:IntPtr *
state:int -> int
public function GetStateAtEndOfLine(
line : int,
length : int,
ptr : IntPtr,
state : int
) : int
Parameters
line
Type: Int32[in] The line number from where the text came from.
length
Type: Int32[in] The length of the text to examine.
ptr
Type: IntPtr[in] An unmarshaled pointer to the text. The example in ColorizeLine shows how to marshal this pointer to a string.
state
Type: Int32[in] The parsing state at the beginning of the line.
Return Value
Type: Int32
Returns the parsing state at the end of the line.
Implements
IVsColorizer.GetStateAtEndOfLine(Int32, Int32, IntPtr, Int32)
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).
.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.