閱讀英文

共用方式為


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

void OnChangeStreamText(
    int iPos,
    int iOldLen,
    int iNewLen,
    int fLast
)

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