IVsTextViewIntellisenseHost::ReplaceSubjectTextSpan Method (Int32, Int32, String^)

 

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)

int ReplaceSubjectTextSpan(
	int iStartIndex,
	int iEndIndex,
	String^ pszText
)

Parameters

iStartIndex
Type: System::Int32

 

iEndIndex
Type: System::Int32

 

pszText
Type: System::String^

 

Return Value

Type: System::Int32

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

From singlefileeditor.idl:

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