다음을 통해 공유


ViewFilter.OnChangeCaretLine Method

Called when the caret moves to another 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)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)

Syntax

‘선언
Public Overridable Sub OnChangeCaretLine ( _
    view As IVsTextView, _
    line As Integer, _
    col As Integer _
)
public virtual void OnChangeCaretLine(
    IVsTextView view,
    int line,
    int col
)

Parameters

  • line
    Type: System.Int32
    [in] The line number to which the caret was moved.
  • col
    Type: System.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