Compartir a través de


SourceText.Replace Method

Definition

Overloads

Replace(TextSpan, String)

Returns a new SourceText with the specified span of characters replaced by the new text.

Replace(Int32, Int32, String)

Returns a new SourceText with the specified range of characters replaced by the new text.

Replace(TextSpan, String)

Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs

Returns a new SourceText with the specified span of characters replaced by the new text.

public:
 Microsoft::CodeAnalysis::Text::SourceText ^ Replace(Microsoft::CodeAnalysis::Text::TextSpan span, System::String ^ newText);
public Microsoft.CodeAnalysis.Text.SourceText Replace (Microsoft.CodeAnalysis.Text.TextSpan span, string newText);
member this.Replace : Microsoft.CodeAnalysis.Text.TextSpan * string -> Microsoft.CodeAnalysis.Text.SourceText
Public Function Replace (span As TextSpan, newText As String) As SourceText

Parameters

span
TextSpan
newText
String

Returns

Applies to

Replace(Int32, Int32, String)

Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs
Source:
SourceText.cs

Returns a new SourceText with the specified range of characters replaced by the new text.

public:
 Microsoft::CodeAnalysis::Text::SourceText ^ Replace(int start, int length, System::String ^ newText);
public Microsoft.CodeAnalysis.Text.SourceText Replace (int start, int length, string newText);
member this.Replace : int * int * string -> Microsoft.CodeAnalysis.Text.SourceText
Public Function Replace (start As Integer, length As Integer, newText As String) As SourceText

Parameters

start
Int32
length
Int32
newText
String

Returns

Applies to