Expand Minimize

IEditorOperations.ReplaceText Method

Replaces text from the specified span with the specified text.

Namespace:  Microsoft.VisualStudio.Text.Operations
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

bool ReplaceText(
	Span replaceSpan,
	string text
)

Parameters

replaceSpan
Type: Microsoft.VisualStudio.Text.Span

The span of text to be replaced.

text
Type: String

The new text.

Return Value

Type: Boolean
true if the edit succeeded, otherwise false.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft