次の方法で共有


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

Syntax

'宣言
Public Overridable Sub OnChangeCaretLine ( _
    view As IVsTextView, _
    line As Integer, _
    col As Integer _
)
'使用
Dim instance As ViewFilter
Dim view As IVsTextView
Dim line As Integer
Dim col As Integer

instance.OnChangeCaretLine(view, line, _
    col)
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: 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

ViewFilter Members

Microsoft.VisualStudio.Package Namespace