다음을 통해 공유


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.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

‘선언
Public Overridable Function GetStateAtEndOfLine ( _
    line As Integer, _
    length As Integer, _
    ptr As IntPtr, _
    state As Integer _
) As Integer
‘사용 방법
Dim instance As Colorizer
Dim line As Integer
Dim length As Integer
Dim ptr As IntPtr
Dim state As Integer
Dim returnValue As Integer

returnValue = instance.GetStateAtEndOfLine(line, _
    length, ptr, state)
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: 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.

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

See Also

Reference

Colorizer Class

Colorizer Members

Microsoft.VisualStudio.Package Namespace