In This Article

UndoRedoRequestEventArgs Class

Event arguments for when an undo or redo operation is requesting to be applied to an ITextDocument.

public class UndoRedoRequestEventArgs : EventArgs
Inheritance:
object EventArgs object

Constructors

UndoRedoRequestEventArgs(ITextDocument, IUndoableTextChange, bool)

Event arguments for when an undo or redo operation is requesting to be applied to an ITextDocument.

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

true the event is for an undo operation; otherwise, false, meaning redo.

Properties

Document

The ITextDocument that is affected by this event, if known.

public ITextDocument Document { get; }

Property Value

ITextDocument

IsUndo

Indicates 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

The IUndoableTextChange that is made to the document.

public IUndoableTextChange TextChange { get; }

Property Value

IUndoableTextChange

Inherited Members

Extension Methods