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
'Dichiarazione
Public Overridable Sub OnChangeCaretLine ( _
view As IVsTextView, _
line As Integer, _
col As Integer _
)
'Utilizzo
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
- view
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextView
[in] An IVsTextView object representing the view in which the caret was moved.
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.