次の方法で共有


SourceText.Replace メソッド

定義

オーバーロード

Replace(TextSpan, String)

指定した文字範囲が新しいテキストに置き換えられた新しい SourceText を返します。

Replace(Int32, Int32, String)

指定した文字範囲が新しいテキストに置き換えられた新しい SourceText を返します。

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

指定した文字範囲が新しいテキストに置き換えられた新しい SourceText を返します。

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

パラメーター

span
TextSpan
newText
String

戻り値

適用対象

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

指定した文字範囲が新しいテキストに置き換えられた新しい SourceText を返します。

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

パラメーター

start
Int32
length
Int32
newText
String

戻り値

適用対象