IVsTextViewIntellisenseHost.ReplaceSubjectTextSpan(Int32, Int32, String) Methode

Definition

Bearbeiten von Betrefftext. Gibt E_FAIL (oder ähnlich) zurück, wenn der Text CR/LFs enthält und Flags IHF_SINGLELINESUBJECT enthalten.

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

Parameter

iStartIndex
Int32
iEndIndex
Int32
pszText
String

Gibt zurück

Int32

Wenn die Methode erfolgreich ist, gibt sie NativeMethods.S_OK zurück. Bei einem Fehler wird ein Fehlercode zurückgegeben.

Implementiert

Hinweise

Aus singlefileeditor. idl:

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

Gilt für