编辑 IntelliSense 运行的文本。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop.8.0(在 Microsoft.VisualStudio.TextManager.Interop.8.0.dll 中)
语法
声明
Function ReplaceSubjectTextSpan ( _
iStartIndex As Integer, _
iEndIndex As Integer, _
pszText As String _
) As Integer
int ReplaceSubjectTextSpan(
int iStartIndex,
int iEndIndex,
string pszText
)
int ReplaceSubjectTextSpan(
[InAttribute] int iStartIndex,
[InAttribute] int iEndIndex,
[InAttribute] String^ pszText
)
abstract ReplaceSubjectTextSpan :
iStartIndex:int *
iEndIndex:int *
pszText:string -> int
function ReplaceSubjectTextSpan(
iStartIndex : int,
iEndIndex : int,
pszText : String
) : int
参数
iStartIndex
类型:Int32[in] 启动主题文本的索引。
iEndIndex
类型:Int32[in] 主题文本的结束索引。
pszText
类型:String[in] 主题文本。
返回值
类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
C++
从 singlefileeditor.idl:
HRESULT IVsIntellisenseHost::ReplaceSubjectTextSpan([in] long iStartIndex, [in] long iEndIndex, [in] LPCWSTR pszText);
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。