IVsIntellisenseHost.ReplaceSubjectTextSpan Method

Edits the text upon which IntelliSense operates.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

'宣言
Function ReplaceSubjectTextSpan ( _
    iStartIndex As Integer, _
    iEndIndex As Integer, _
    pszText As String _
) As Integer
'使用
Dim instance As IVsIntellisenseHost
Dim iStartIndex As Integer
Dim iEndIndex As Integer
Dim pszText As String
Dim returnValue As Integer

returnValue = instance.ReplaceSubjectTextSpan(iStartIndex, _
    iEndIndex, pszText)
int ReplaceSubjectTextSpan(
    int iStartIndex,
    int iEndIndex,
    string pszText
)
int ReplaceSubjectTextSpan(
    [InAttribute] int iStartIndex, 
    [InAttribute] int iEndIndex, 
    [InAttribute] String^ pszText
)
function ReplaceSubjectTextSpan(
    iStartIndex : int, 
    iEndIndex : int, 
    pszText : String
) : int

Parameters

  • iStartIndex
    Type: System.Int32

    [in] Starting index of the subject text.

Return Value

Type: System.Int32

If the method succeeds, it returns VSConstants.S_OK. If it fails, it returns an error code.

Remarks

C++

From singlefileeditor.idl:

HRESULT IVsIntellisenseHost::ReplaceSubjectTextSpan([in] long iStartIndex, [in] long iEndIndex, [in] LPCWSTR pszText);

Permissions

See Also

Reference

IVsIntellisenseHost Interface

IVsIntellisenseHost Members

Microsoft.VisualStudio.TextManager.Interop Namespace