IVsTextStreamEvents::OnChangeStreamText Method (Int32, Int32, Int32, Int32)

 

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)

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

Parameters

iPos
Type: System::Int32

[in] Starting position of the affected text.

iOldLen
Type: System::Int32

[in] Previous length of text.

iNewLen
Type: System::Int32

[in] New length of text.

fLast
Type: System::Int32

[in] Obsolete; ignore.

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.

Return to top
Show: