다음을 통해 공유


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 _
)
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

Microsoft.VisualStudio.TextManager.Interop Namespace