Class HistoryTextItemEventArgs
public class HistoryTextItemEventArgs : EventArgs
- Inheritance
-
HistoryTextItemEventArgs
- Inherited Members
Remarks
This class encapsulates information about changes to text, such as the affected lines, cursor positions, and the type of change. It is primarily used to support undo/redo functionality in text editing controls like TextView and TextField.
Constructors
- HistoryTextItemEventArgs(List<List<Cell>>, Point, TextEditingLineStatus)
Initializes a new instance of the HistoryTextItemEventArgs class with the specified lines, cursor position, and line status.
- HistoryTextItemEventArgs(List<List<Cell>>, Point, TextEditingLineStatus, HistoryTextItemEventArgs)
Initializes a new instance of the HistoryTextItemEventArgs class with the specified lines, cursor position, line status, and associated removed line.
- HistoryTextItemEventArgs(HistoryTextItemEventArgs)
Initializes a new instance of the HistoryTextItemEventArgs class by copying an existing instance.
- HistoryTextItemEventArgs(HistoryTextItemEventArgs, HistoryTextItemEventArgs)
Initializes a new instance of the HistoryTextItemEventArgs class by copying an existing instance and associating it with a removed line.
Fields
- CursorPosition
Gets or sets the cursor position at the time of the change.
- FinalCursorPosition
Gets or sets the final cursor position after the change is applied.
- IsUndoing
Gets or sets a value indicating whether the change is part of an undo operation.
- LineStatus
Gets or sets the status of the line(s) affected by the change.
- Lines
Gets or sets the lines of text affected by the change.
- RemovedOnAdded
Gets or sets the associated HistoryTextItemEventArgs for a removed line when an added line replaces it.
Methods
- ToString()
Returns a string representation of the HistoryTextItemEventArgs instance.