IVsTextViewIntellisenseHost.ReplaceSubjectTextSpan Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);