IEditorOperations::ReplaceText Method (Span, String^)

 

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: System::String^

The new text.

Return Value

Type: System::Boolean

true if the edit succeeded, otherwise false.

Return to top
Show: