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
- 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
- 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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.