TCustomRichViewEdit.BeginUndoGroup

<< Click to display table of contents >>

TCustomRichViewEdit.BeginUndoGroup

Begins a new undo action.

procedure BeginUndoGroup(UndoType: TRVUndoType);

Begins a new undo action.

Usually followed by SetUndoGroupMode(True) ... SetUndoGroupMode(False), thus allowing to group several subsequent changes in editor (they will be undone/redone as one operation).

The same as BeginUndoCustomGroup, but gives a standard name (undo identifier) to this group of changes.

This method must be called only when the document is formatted.

This method must be called directly for the editor where changed are made (usually TopLevelEditor).

See also:

Undo in RichViewEdit, includes an example.