TPlusMemo.UndoMaxLevel, UndoMaxSpace properties
PlusMemo Help Send comments on this topic.
TPlusMemo.UndoMaxLevel, UndoMaxSpace properties

Glossary Item Box

 

Applies to

TPlusMemo, TDBPlusMemo

 

Declaration

property UndoMaxLevel: Integer;

property UndoMaxSpace: Integer;

 

Description

These properties control the amount of undo information that the component will store.  They both have read and write access, and are available at design time.

 

UndoMaxLevel represents the number of undo records kept by the control.  The default value is 256.  When the number of operations to keep track exceeds this level, the component starts discarding oldest undo information.  Setting it to zero will enable an infinite amount of levels.  Setting it to one permits only one level of undo-redo.

 

UndoMaxSpace is used to control the maximum amount of memory used by the TPlusMemo to store the undo information.  The default value is 65536.  The component will start discarding oldest undo information if the total memory necessary to keep it is greater than UndoMaxSpace.  The purpose of this property is to avoid using an out of control amount of memory.  We advise that you always keep it at less than 1 MB.

 

See also

Undo, Redo methods

ClearUndo method

CanUndo, CanRedo properties