C# Class AvalonStudio.TextEditor.Document.DocumentChangeEventArgs

Inheritance: TextChangeEventArgs
ファイルを表示 Open project: VitalElement/AvalonStudio Class Usage Examples

Private Properties

Property Type Description
CreateSingleChangeMapEntry OffsetChangeMapEntry
SetOffsetChangeMap void

Public Methods

Method Description
DocumentChangeEventArgs ( int offset, ITextSource removedText, ITextSource insertedText, OffsetChangeMap offsetChangeMap ) : System

Creates a new DocumentChangeEventArgs object.

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

Creates a new DocumentChangeEventArgs object.

DocumentChangeEventArgs ( int offset, string removedText, string insertedText, OffsetChangeMap offsetChangeMap ) : System

Creates a new DocumentChangeEventArgs object.

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

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

Invert ( ) : TextChangeEventArgs

Private Methods

Method Description
CreateSingleChangeMapEntry ( ) : OffsetChangeMapEntry
SetOffsetChangeMap ( OffsetChangeMap offsetChangeMap ) : void

Method Details

DocumentChangeEventArgs() public method

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

DocumentChangeEventArgs() public method

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

DocumentChangeEventArgs() public method

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

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

public Invert ( ) : TextChangeEventArgs
return TextChangeEventArgs