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

 

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)

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

Parameters

iStartIndex
Type: System::Int32

[in] Starting index of the subject text.

iEndIndex
Type: System::Int32

[in] Ending index of the subject text.

pszText
Type: System::String^

[in] The subject text.

Return Value

Type: System::Int32

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

C++

From singlefileeditor.idl:

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

Return to top
Show: