SourceLocationTracker.CalculateNewLocation(SourceLocation, String) 方法

定义

此类型/成员支持.NET Framework基础结构,不应直接从代码中使用。计算源的新位置。

public static System.Web.Razor.Text.SourceLocation CalculateNewLocation (System.Web.Razor.Text.SourceLocation lastPosition, string newContent);
static member CalculateNewLocation : System.Web.Razor.Text.SourceLocation * string -> System.Web.Razor.Text.SourceLocation
Public Shared Function CalculateNewLocation (lastPosition As SourceLocation, newContent As String) As SourceLocation

参数

lastPosition
SourceLocation

最后一个位置。

newContent
String

新内容。

返回

新的源位置。

适用于