Partager via


IVsTextViewIntellisenseHost.ReplaceSubjectTextSpan Method

Definition

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

public:
 int ReplaceSubjectTextSpan(int iStartIndex, int iEndIndex, System::String ^ pszText);
public:
 int ReplaceSubjectTextSpan(int iStartIndex, int iEndIndex, Platform::String ^ pszText);
int ReplaceSubjectTextSpan(int iStartIndex, int iEndIndex, std::wstring const & pszText);
public int ReplaceSubjectTextSpan (int iStartIndex, int iEndIndex, string pszText);
abstract member ReplaceSubjectTextSpan : int * int * string -> int
Public Function ReplaceSubjectTextSpan (iStartIndex As Integer, iEndIndex As Integer, pszText As String) As Integer

Parameters

iStartIndex
Int32

 

iEndIndex
Int32

 

pszText
String

 

Returns

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

Implements

Remarks

From singlefileeditor.idl:

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

Applies to