SourceText.Replace Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk