SourceLocationTracker.CalculateNewLocation(SourceLocation, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
此類型/成員支援.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
新內容。
傳回
新來源位置。