Class TextChange
Represents a text change.
Inheritance
Inherited Members
Namespace: Telerik.Windows.SyntaxEditor.Core.Text
Assembly: Telerik.Windows.SyntaxEditor.Core.dll
Syntax
public class TextChange
Constructors
TextChange(Int32, String, String)
Initializes a new instance of the TextChange class.
Declaration
public TextChange(int oldPosition, string oldText, string newText)
Parameters
System.Int32
oldPosition
|
System.String
oldText
|
System.String
newText
|
Properties
Delta
Gets the difference in the new / old text lengths.
Declaration
public int Delta { get; }
Property Value
System.Int32
|
InsertedLineCount
Gets the inserted lines count.
Declaration
public int InsertedLineCount { get; }
Property Value
System.Int32
|
LineCountDelta
Gets the line count difference.
Declaration
public int LineCountDelta { get; }
Property Value
System.Int32
|
NewSpan
NewText
Gets the new text.
Declaration
public string NewText { get; }
Property Value
System.String
|
OldSpan
OldText
Gets the old text.
Declaration
public string OldText { get; }
Property Value
System.String
|
Methods
Reverse()
TranslatePosition(Int32, PositionAnchoringType)
Translates the given position.
Declaration
public int TranslatePosition(int position, PositionAnchoringType anchorType)
Parameters
System.Int32
position
|
PositionAnchoringType
anchorType
|
Returns
System.Int32
|