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
Position
Position where the operation occurred
public TextPosition Position { get; init; }
Property Value
ReplacedText
For replacement operations, the text that was replaced
public string? ReplacedText { get; init; }
Property Value
SelectionBefore
Selection state before the operation
public TextSelection? SelectionBefore { get; init; }
Property Value
Text
Text that was inserted or deleted
public string Text { get; init; }
Property Value
Timestamp
Timestamp of the operation
public DateTime Timestamp { get; init; }
Property Value
Type
Type of operation
public EditOperationType Type { get; init; }