Freigeben über


ViewFilter.OnChangeCaretLine Method

Called when the caret moves to another line.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.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 Sub OnChangeCaretLine ( _
    view As IVsTextView, _
    line As Integer, _
    col As Integer _
)
public virtual void OnChangeCaretLine(
    IVsTextView view,
    int line,
    int col
)
public:
virtual void OnChangeCaretLine(
    IVsTextView^ view, 
    int line, 
    int col
)
abstract OnChangeCaretLine : 
        view:IVsTextView * 
        line:int * 
        col:int -> unit  
override OnChangeCaretLine : 
        view:IVsTextView * 
        line:int * 
        col:int -> unit
public function OnChangeCaretLine(
    view : IVsTextView, 
    line : int, 
    col : int
)

Parameters

  • line
    Type: Int32

    [in] The line number to which the caret was moved.

  • col
    Type: Int32

    [in] The character offset on the line to which the caret was moved.

Implements

IVsTextViewEvents.OnChangeCaretLine(IVsTextView, Int32, Int32)

Remarks

If you need to handle the event where the caret moves to another line, you must derive a class from the ViewFilter class and override this method.

This method is an implementation of the OnChangeCaretLine method on the IVsTextViewEvents interface.

The base method does nothing.

.NET Framework Security

See Also

Reference

ViewFilter Class

Microsoft.VisualStudio.Package Namespace