Share via


SpanEditHandler.GetOldText(Span, TextChange) Method

Definition

Returns the old text referenced by the change.

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

Parameters

target
Span
change
TextChange

Returns

Remarks

If the content has already been updated by applying the change, this data will be invalid

Applies to