Table of Contents

Class EditOperation

Namespace
SharpConsoleUI.Core
Assembly
SharpConsoleUI.dll

Represents an undoable edit operation

public record EditOperation : IEquatable<EditOperation>
Inheritance
EditOperation
Implements
Inherited Members

Properties

CursorBefore

Cursor position before the operation

public TextPosition? CursorBefore { get; init; }

Property Value

TextPosition

Position

Position where the operation occurred

public TextPosition Position { get; init; }

Property Value

TextPosition

ReplacedText

For replacement operations, the text that was replaced

public string? ReplacedText { get; init; }

Property Value

string

SelectionBefore

Selection state before the operation

public TextSelection? SelectionBefore { get; init; }

Property Value

TextSelection

Text

Text that was inserted or deleted

public string Text { get; init; }

Property Value

string

Timestamp

Timestamp of the operation

public DateTime Timestamp { get; init; }

Property Value

DateTime

Type

Type of operation

public EditOperationType Type { get; init; }

Property Value

EditOperationType