IEditorOperations.ReplaceSelection Method (String)

 

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.

Exception Condition
ArgumentNullException

text is null.

Return to top
Show: