Expand Minimize
This topic has not yet been rated - Rate this topic

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.
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.