Table of Contents

Interface IUndo

Namespace
Alternet.Editor.TextSource
Assembly
Alternet.Editor.v9.dll

Represents properties and methods to perform undo/redo operation with the text.

public interface IUndo

Properties

ModifiedLineRegions

When implemented by a class, gets modified lines information, grouped in regions.

ModifiedLines

When implemented by a class, gets modified lines information.

RedoList

When implemented by a class, provides an indexed access to redo data.

UndoLimit

When implemented by a class, gets or sets a value that limits number of undo operations.

UndoList

When implemented by a class, provides an indexed access to undo data.

UndoOptions

When implemented by a class, gets or sets options for undo and redo operations.

UndoUpdateCount

When implemented by a class, keeps track of calls to BeginUndoUpdate and EndUndoUpdate so that they can be nested.

Methods

AddUndo(UndoOperation, object)

When implemented by a class, stores undo operation in the appropriate list.

BeginUndoUpdate()

When implemented by a class, allows to consider number of undo redo operations as single operation, until calling EndUndoUpdate method.

CanRedo()

When implemented by a class, indicating whether the redo operation can be performed.

CanUndo()

When implemented by a class, indicating whether the undo operation can be performed.

ClearRedo()

When implemented by a class, clears list of redo operations.

ClearUndo()

When implemented by a class, clears list of undo operations.

DisableUndo()

When implemented by a class, disables recording of undo/redo operations. EnableUndo()

EnableUndo()

When implemented by a class, re-enables recording of undo/redo operations, that was turn of by calling DisableUndo method. DisableUndo()

EndUndoUpdate()

When implemented by a class, ends undo block, that was started by BeginUndoUpdate method.

LineIsModified(int)

When implemented by a class, indicates whether specified line already modified.

LineIsModified(int, out bool)

When implemented by a class, indicates whether specified line already modified.

Redo()

When implemented by a class, performs the last redo operation.

ResetUndoLimit()

When implemented by a class, resets the UndoLimit to the default value.

ResetUndoOptions()

When implemented by a class, resets the UndoOptions to the default value.

Undo(IUndoData, bool)

When implemented by a class, performs the single undo operation.

Undo(bool)

When implemented by a class, performs the last undo operation.

Events

UndoEvent

When implemented by a class, occurs when undo/redo operation performed.