ClassTextChange
Class
Represents a text change.
Definition
Namespace:Telerik.Windows.SyntaxEditor.Core.Text
Assembly:Telerik.Windows.SyntaxEditor.Core.dll
Syntax:
cs-api-definition
public class TextChange
Inheritance: objectTextChange
Constructors
TextChange(int, string, string)
Initializes a new instance of the TextChange class.
Properties
Delta
Gets the difference in the new / old text lengths.
InsertedLineCount
Gets the inserted lines count.
LineCountDelta
Gets the line count difference.
NewSpan
Gets the new span.
NewText
Gets the new text.
OldSpan
Gets the old span.
Methods
Reverse()
Reverses the text change.
TranslatePosition(int, PositionAnchoringType)
Translates the given position.
Declaration
cs-api-definition
public int TranslatePosition(int position, PositionAnchoringType anchorType)
Parameters
position
anchorType
Returns