Compartir a través de


IVsTextViewIntellisenseHost.ReplaceSubjectTextSpan Method

Editing subject text. Return E_FAIL (or something) if text contains CR/LFs and flags contain IHF_SINGLELINESUBJECT.

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

Syntax

'Declaration
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

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns NativeMethods.S_OK. If it fails, it returns an error code.

Remarks

From singlefileeditor.idl:

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

.NET Framework Security

See Also

Reference

IVsTextViewIntellisenseHost Interface

Microsoft.VisualStudio.TextManager.Interop Namespace