Share via


TextChange Constructor

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the TextChange class.

Namespace:  System.Web.Razor.Text
Assembly:  System.Web.Razor (in System.Web.Razor.dll)

Syntax

'Declaration
Public Sub New ( _
    oldPosition As Integer, _
    oldLength As Integer, _
    oldBuffer As ITextBuffer, _
    newPosition As Integer, _
    newLength As Integer, _
    newBuffer As ITextBuffer _
)
'Usage
Dim oldPosition As Integer 
Dim oldLength As Integer 
Dim oldBuffer As ITextBuffer 
Dim newPosition As Integer 
Dim newLength As Integer 
Dim newBuffer As ITextBuffer 

Dim instance As New TextChange(oldPosition, _
    oldLength, oldBuffer, newPosition, _
    newLength, newBuffer)
public TextChange(
    int oldPosition,
    int oldLength,
    ITextBuffer oldBuffer,
    int newPosition,
    int newLength,
    ITextBuffer newBuffer
)
public:
TextChange(
    int oldPosition, 
    int oldLength, 
    ITextBuffer^ oldBuffer, 
    int newPosition, 
    int newLength, 
    ITextBuffer^ newBuffer
)
new : 
        oldPosition:int * 
        oldLength:int * 
        oldBuffer:ITextBuffer * 
        newPosition:int * 
        newLength:int * 
        newBuffer:ITextBuffer -> TextChange
public function TextChange(
    oldPosition : int, 
    oldLength : int, 
    oldBuffer : ITextBuffer, 
    newPosition : int, 
    newLength : int, 
    newBuffer : ITextBuffer
)

Parameters

  • oldPosition
    Type: System.Int32
    The position of the text change in the snapshot immediately before the change.
  • newPosition
    Type: System.Int32
    The position of the text change in the snapshot immediately after the change.

See Also

Reference

TextChange Structure

System.Web.Razor.Text Namespace