IVsTextStream::ReplaceStream Method (Int32, Int32, IntPtr, Int32)
Visual Studio 2015
Handles editing, such as line breaking, line joining, and so on.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Parameters
- iPos
-
Type:
System::Int32
[in] Starting position in the text buffer.
- iOldLen
-
Type:
System::Int32
[in] Length of text to reload.
- pszText
-
Type:
System::IntPtr
[in] Text to insert.
- iNewLen
-
Type:
System::Int32
[in] Length of the newly inserted text.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
HRESULT IVsTextStream::ReplaceStream( [in] long iPos, [in] long iOldLen, [in] LPCOLESTR pszText, [in] long iNewLen );
Use this method to complete any change to the text in the buffer. To replace text without replacing markers, use ReloadStream.
Show: