共用方式為


IVsTextStreamEvents.OnChangeStreamText Method

Notifies the clients when the content of a text stream in the buffer has changed.

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

Syntax

'宣告
Sub OnChangeStreamText ( _
    iPos As Integer, _
    iOldLen As Integer, _
    iNewLen As Integer, _
    fLast As Integer _
)
'用途
Dim instance As IVsTextStreamEvents
Dim iPos As Integer
Dim iOldLen As Integer
Dim iNewLen As Integer
Dim fLast As Integer

instance.OnChangeStreamText(iPos, iOldLen, _
    iNewLen, fLast)
void OnChangeStreamText(
    int iPos,
    int iOldLen,
    int iNewLen,
    int fLast
)
void OnChangeStreamText(
    [InAttribute] int iPos, 
    [InAttribute] int iOldLen, 
    [InAttribute] int iNewLen, 
    [InAttribute] int fLast
)
abstract OnChangeStreamText : 
        iPos:int * 
        iOldLen:int * 
        iNewLen:int * 
        fLast:int -> unit 
function OnChangeStreamText(
    iPos : int, 
    iOldLen : int, 
    iNewLen : int, 
    fLast : int
)

Parameters

  • iPos
    Type: System.Int32
    [in] Starting position of the affected text.

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextStreamEvents::OnChangeStreamText(
   [in] long iPos,
   [in] long iOldLen,
   [in] long iNewLen,
   [in] BOOL fLast
);

Use this method to determine the stream of affected text before and after a change.

.NET Framework Security

See Also

Reference

IVsTextStreamEvents Interface

IVsTextStreamEvents Members

Microsoft.VisualStudio.TextManager.Interop Namespace