次の方法で共有


ViewFilter.OnChangeCaretLine(IVsTextView, Int32, Int32) Method

Definition

Called when the caret moves to another line.

public:
 virtual void OnChangeCaretLine(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ view, int line, int col);
public:
 virtual void OnChangeCaretLine(Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ view, int line, int col);
 virtual void OnChangeCaretLine(Microsoft::VisualStudio::TextManager::Interop::IVsTextView const & view, int line, int col);
public virtual void OnChangeCaretLine (Microsoft.VisualStudio.TextManager.Interop.IVsTextView view, int line, int col);
abstract member OnChangeCaretLine : Microsoft.VisualStudio.TextManager.Interop.IVsTextView * int * int -> unit
override this.OnChangeCaretLine : Microsoft.VisualStudio.TextManager.Interop.IVsTextView * int * int -> unit
Public Overridable Sub OnChangeCaretLine (view As IVsTextView, line As Integer, col As Integer)

Parameters

view
IVsTextView

[in] An IVsTextView object representing the view in which the caret was moved.

line
Int32

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

col
Int32

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

Implements

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.

Applies to