다음을 통해 공유


IVsIntellisenseHost.ReplaceSubjectTextSpan(Int32, Int32, String) Method

Definition

Edits the text upon which IntelliSense operates.

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

[in] Starting index of the subject text.

iEndIndex
Int32

[in] Ending index of the subject text.

pszText
String

[in] The subject text.

Returns

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

Remarks

C++

From singlefileeditor.idl:

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

Applies to