IVsIntellisenseHost.ReplaceSubjectTextSpan 方法

编辑 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 安全性

请参阅

参考

IVsIntellisenseHost 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间