UndoRedoRequestEventArgs Class
Event arguments for when an undo or redo operation is requesting to be applied to an ITextDocument.
public class UndoRedoRequestEventArgs : EventArgs
Constructors
UndoRedoRequestEventArgs(ITextDocument, IUndoableTextChange, bool)
Initializes a new instance of the UndoRedoRequestEventArgs
class.
public UndoRedoRequestEventArgs(ITextDocument document, IUndoableTextChange textChange, bool isUndo)
Parameter | Type | Description |
---|---|---|
document | ITextDocument | The ITextDocument that is affected by this event, if known. |
textChange | IUndoableTextChange | The IUndoableTextChange that is made. |
isUndo | bool |
|
Properties
Document
Gets the ITextDocument that is affected by this event, if known.
public ITextDocument Document { get; }
Property Value
- ITextDocument:
The ITextDocument that is affected by this event, if known.
IsUndo
Gets whether this event is for an undo operation.
public bool IsUndo { get; }
Property Value
- bool:
true
the event is for an undo operation; otherwise,false
, meaning redo.
TextChange
Gets the IUndoableTextChange that is made to the document.
public IUndoableTextChange TextChange { get; }
Property Value
- IUndoableTextChange:
The IUndoableTextChange that is made to the document.