编辑器,如行的处理中断,连接的行,等等。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
语法
声明
Function ReplaceStream ( _
iPos As Integer, _
iOldLen As Integer, _
pszText As IntPtr, _
iNewLen As Integer _
) As Integer
int ReplaceStream(
int iPos,
int iOldLen,
IntPtr pszText,
int iNewLen
)
int ReplaceStream(
[InAttribute] int iPos,
[InAttribute] int iOldLen,
[InAttribute] IntPtr pszText,
[InAttribute] int iNewLen
)
abstract ReplaceStream :
iPos:int *
iOldLen:int *
pszText:IntPtr *
iNewLen:int -> int
function ReplaceStream(
iPos : int,
iOldLen : int,
pszText : IntPtr,
iNewLen : int
) : int
参数
iPos
类型:Int32[in] 在文本缓冲区的起始位置。
iOldLen
类型:Int32[in] 重载的文本的长度。
pszText
类型:IntPtr[in] 要插入的文本。
iNewLen
类型:Int32[in] 新插入的文本的长度。
返回值
类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 textmgr.idl:
HRESULT IVsTextStream::ReplaceStream(
[in] long iPos,
[in] long iOldLen,
[in] LPCOLESTR pszText,
[in] long iNewLen
);
使用此方法完成对该文本的所有更改缓冲区。 若要替换文本,而不必替换标记,请使用 ReloadStream。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。