Expand Minimize

IEditorOperations.ReplaceSelection Method

Replaces the text selection with the specified text.

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

bool ReplaceSelection(
	string text
)

Parameters

text
Type: System.String

The text to use as a replacement.

Return Value

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

ExceptionCondition
ArgumentNullException

text is null.

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