IEditorOperations.ReplaceText(Span, String) IEditorOperations.ReplaceText(Span, String) IEditorOperations.ReplaceText(Span, String) IEditorOperations.ReplaceText(Span, String) Method

Definition

Replaces text from the specified span with the specified text.

public:
 bool ReplaceText(Microsoft::VisualStudio::Text::Span replaceSpan, System::String ^ 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 Span Span Span

The span of text to be replaced.

text
String String String String

The new text.

Returns

true if the edit succeeded, otherwise false.

Applies to