IVsTextStream.ReplaceStreamEx 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
处理编辑,如换行、行联接等。
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
参数
- dwFlags
- UInt32
中替换操作期间用于修改文本的选项。 有关值的列表 dwFlags ,请参阅 REPLACE_TEXT_FLAGS 。
- iPos
- Int32
中文本缓冲区中的起始位置。
- iOldLen
- Int32
中要重载的文本长度。
- pszText
-
IntPtr
nativeint
中要插入的文本。
- iNewLen
- Int32
中新插入文本的长度。
- piActualLen
- Int32
弄已更改的字符数。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 textmgr:
HRESULT IVsTextStream::ReplaceStreamEx(
[in] DWORD dwFlags,
[in] long iPos,
[in] long iOldLen,
[in] const WCHAR *pszText,
[in] long iNewLen,
[out] long *piActualLen
);
与 I 类似 ReplaceStream ,但允许您在参数中指定其他选项 dwFlags 。