编辑这些主题文本。 返回 E_FAIL (或者它),如果文本包含 CR/LFs,并且标志包含 IHF_SINGLELINESUBJECT。
命名空间: 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
iEndIndex
类型:Int32
pszText
类型:String
返回值
类型:Int32
如果方法成功,则返回 NativeMethods.S_OK。如果失败,它会返回一个错误代码。
备注
从 singlefileeditor.idl:
HRESULT IVsTextViewIntellisenseHost::ReplaceSubjectTextSpan([in] long iStartIndex, [in] long iEndIndex, [in] LPCWSTR pszText);
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。