IVsTextStream::ReplaceStreamEx Method (UInt32, Int32, Int32, IntPtr, Int32, 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)
int ReplaceStreamEx( unsigned int dwFlags, int iPos, int iOldLen, IntPtr pszText, int iNewLen, [OutAttribute] int% piActualLen )
Parameters
- dwFlags
-
Type:
System::UInt32
[in] Options for modifying text during a replace operation. For a list of dwFlags values, see REPLACE_TEXT_FLAGS.
- 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.
- piActualLen
-
Type:
System::Int32
[out] Number of characters changed.
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::ReplaceStreamEx( [in] DWORD dwFlags, [in] long iPos, [in] long iOldLen, [in] const WCHAR *pszText, [in] long iNewLen, [out] long *piActualLen );
Similar to IReplaceStream, but allows you to specify additional options in the dwFlags parameter.
Show: