IVsTextStream.ReplaceStreamEx Method

Definition

Handles editing, such as line breaking, line joining, and so on.

public:
 int ReplaceStreamEx(System::UInt32 dwFlags, int iPos, int iOldLen, IntPtr pszText, int iNewLen, [Runtime::InteropServices::Out] int % piActualLen);
public int ReplaceStreamEx (uint dwFlags, int iPos, int iOldLen, IntPtr pszText, int iNewLen, out int piActualLen);
abstract member ReplaceStreamEx : uint32 * int * int * nativeint * int * int -> int
Public Function ReplaceStreamEx (dwFlags As UInteger, iPos As Integer, iOldLen As Integer, pszText As IntPtr, iNewLen As Integer, ByRef piActualLen As Integer) As Integer

Parameters

dwFlags
UInt32

[in] Options for modifying text during a replace operation. For a list of dwFlags values, see REPLACE_TEXT_FLAGS.

iPos
Int32

[in] Starting position in the text buffer.

iOldLen
Int32

[in] Length of text to reload.

pszText
IntPtr

nativeint

[in] Text to insert.

iNewLen
Int32

[in] Length of the newly inserted text.

piActualLen
Int32

[out] Number of characters changed.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

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.

Applies to