SourceLocationTracker.CalculateNewLocation(SourceLocation, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Calculates the new location of the source.
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
Parameters
- lastPosition
- SourceLocation
The last position.
- newContent
- String
The new content.
Returns
The new source location.