Condividi tramite


ITextDocumentEditor.Replace(TextRange, String) Method

Definition

Replaces the text within replaceRange with replaceWith.

public void Replace (Microsoft.VisualStudio.Extensibility.Editor.TextRange replaceRange, string replaceWith);
abstract member Replace : Microsoft.VisualStudio.Extensibility.Editor.TextRange * string -> unit
Public Sub Replace (replaceRange As TextRange, replaceWith As String)

Parameters

replaceRange
TextRange

The TextRange of text to replace.

replaceWith
String

The TextRange of text to insert.

Applies to