TextChange.ApplyChange 方法

定義

多載

ApplyChange(Span)

將文字變更套用至範圍的內容,並傳回新的內容。 這個方法不會更新範圍內容。

ApplyChange(String, Int32)

ApplyChange(Span)

將文字變更套用至範圍的內容,並傳回新的內容。 這個方法不會更新範圍內容。

public:
 System::String ^ ApplyChange(Microsoft::AspNetCore::Razor::Parser::SyntaxTree::Span ^ span);
public string ApplyChange (Microsoft.AspNetCore.Razor.Parser.SyntaxTree.Span span);
member this.ApplyChange : Microsoft.AspNetCore.Razor.Parser.SyntaxTree.Span -> string
Public Function ApplyChange (span As Span) As String

參數

span
Span

傳回

適用於

ApplyChange(String, Int32)

public:
 System::String ^ ApplyChange(System::String ^ content, int changeOffset);
public string ApplyChange (string content, int changeOffset);
member this.ApplyChange : string * int -> string
Public Function ApplyChange (content As String, changeOffset As Integer) As String

參數

content
String
changeOffset
Int32

傳回

適用於