Share via


SpanEditHandler.GetOldText(Span, TextChange) 方法

定義

這個類型/成員可以支援 .NET Framework 基礎結構,但不能直接使用於您的程式碼中。 從範圍內容取得舊文字。

protected internal static string GetOldText (System.Web.Razor.Parser.SyntaxTree.Span target, System.Web.Razor.Text.TextChange change);
static member GetOldText : System.Web.Razor.Parser.SyntaxTree.Span * System.Web.Razor.Text.TextChange -> string
Protected Friend Shared Function GetOldText (target As Span, change As TextChange) As String

參數

target
Span

用來取得舊文字的範圍。

change
TextChange

文字變更包含舊文字的位置。

傳回

範圍內容的舊文字。

適用於