IEditorOperations.ReplaceText(Span, String) Methode

Definition

Ersetzt Text aus der angegebenen Spanne durch den neuen Text.

public:
 bool ReplaceText(Microsoft::VisualStudio::Text::Span replaceSpan, System::String ^ text);
public:
 bool ReplaceText(Microsoft::VisualStudio::Text::Span replaceSpan, Platform::String ^ text);
bool ReplaceText(Microsoft::VisualStudio::Text::Span replaceSpan, std::wstring const & text);
public bool ReplaceText (Microsoft.VisualStudio.Text.Span replaceSpan, string text);
abstract member ReplaceText : Microsoft.VisualStudio.Text.Span * string -> bool
Public Function ReplaceText (replaceSpan As Span, text As String) As Boolean

Parameter

replaceSpan
Span

Der Textabschnitt, der ersetzt werden soll.

text
String

Der neue Text.

Gibt zurück

Boolean

true , wenn die Bearbeitung erfolgreich war, andernfalls false.

Gilt für