C# Class AvalonStudio.TextEditor.Document.TextChangeEventArgs

Inheritance: System.EventArgs
Datei anzeigen Open project: VitalElement/AvalonStudio Class Usage Examples

Public Methods

Method Description
GetNewOffset ( int offset, AnchorMovementType movementType = AnchorMovementType.Default ) : int

Gets the new offset where the specified offset moves after this document change.

Invert ( ) : TextChangeEventArgs

Creates TextChangeEventArgs for the reverse change.

TextChangeEventArgs ( int offset, ITextSource removedText, ITextSource insertedText ) : System

Creates a new TextChangeEventArgs object.

TextChangeEventArgs ( int offset, string removedText, string insertedText ) : System

Creates a new TextChangeEventArgs object.

Method Details

GetNewOffset() public method

Gets the new offset where the specified offset moves after this document change.
public GetNewOffset ( int offset, AnchorMovementType movementType = AnchorMovementType.Default ) : int
offset int
movementType AnchorMovementType
return int

Invert() public method

Creates TextChangeEventArgs for the reverse change.
public Invert ( ) : TextChangeEventArgs
return TextChangeEventArgs

TextChangeEventArgs() public method

Creates a new TextChangeEventArgs object.
public TextChangeEventArgs ( int offset, ITextSource removedText, ITextSource insertedText ) : System
offset int
removedText ITextSource
insertedText ITextSource
return System

TextChangeEventArgs() public method

Creates a new TextChangeEventArgs object.
public TextChangeEventArgs ( int offset, string removedText, string insertedText ) : System
offset int
removedText string
insertedText string
return System