Skip to main content

TcxCustomRichEdit.CanUndo Property

Returns whether a rich text editor contains changes that can be canceled using the Undo method.

Declaration

property CanUndo: Boolean read;

Property Value

Type
Boolean

Remarks

This verification can be made, for example, when menu items that correspond to the undo operation are to be enabled or disabled.

Note that the rich edit control v1.0 supports only single-level undo. If this type of rich editor is used, the CanUndo property always returns True, since performing an undo operation results in the new redo operation.

The rich edit control v2.0 and later provides a multi-level cancel operation (see the RichEditClass property).

See Also