共用方式為


IVsTextViewEvents.OnChangeCaretLine Method

Notifies the client when a change of caret line occurs.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'宣告
Sub OnChangeCaretLine ( _
    pView As IVsTextView, _
    iNewLine As Integer, _
    iOldLine As Integer _
)
void OnChangeCaretLine(
    IVsTextView pView,
    int iNewLine,
    int iOldLine
)
void OnChangeCaretLine(
    [InAttribute] IVsTextView^ pView, 
    [InAttribute] int iNewLine, 
    [InAttribute] int iOldLine
)
abstract OnChangeCaretLine : 
        pView:IVsTextView * 
        iNewLine:int * 
        iOldLine:int -> unit 
function OnChangeCaretLine(
    pView : IVsTextView, 
    iNewLine : int, 
    iOldLine : int
)

Parameters

  • iNewLine
    Type: System.Int32
    [in] Integer containing the new line.
  • iOldLine
    Type: System.Int32
    [in] Integer containing the old line.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextViewEvents::OnChangeCaretLine(
   [in] IVsTextView *pView,
   [in] long iNewLine,
   [in] long iOldLine
);

.NET Framework Security

See Also

Reference

IVsTextViewEvents Interface

Microsoft.VisualStudio.TextManager.Interop Namespace