Compartir a través de


IEditorOperations.ReplaceText(Span, String) Method

Definition

Replaces text from the given span with the new 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

Parameters

replaceSpan
Span

The span of text to be replaced.

text
String

The new text.

Returns

true if the edit succeeded, otherwise false.

Applies to