IVsTextStream::ReloadStream Method (Int32, Int32, IntPtr, Int32)
Visual Studio 2015
Replaces text without deleting markers.
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] Pointer to 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::ReloadStream( [in] long iPos, [in] long iOldLen, [in] const WCHAR *pszText, [in] long iNewLen );
In ReloadStream, text is replaced, but markers are not deleted. Use this method only in special circumstances, such as when a buffer is being reloaded from disk or when a wizard is substituting a particular section of code.
Show: