Back to Devexpress

TdxRichEditControlBase.CanUndo Method

vcl-dxrichedit-dot-control-dot-core-dot-tdxricheditcontrolbase-6c7a6d16.md

latest1.6 KB
Original Source

TdxRichEditControlBase.CanUndo Method

Returns a value indicating whether the Undo command is currently available to end-users.

Declaration

delphi
function CanUndo: Boolean;

Returns

Type
Boolean

Remarks

If this function returns True , an end-user can execute the Undo command; otherwise – False.

The Undo command is available only if all following conditions are met:

  • The action history functionality is enabled;

  • At least a single action is performed within the current document (note that each execution of the Undo command moves an action from the undo to redo action list).

See Also

TdxRichEditControlBase

TdxRichEditControlBase.CanRedo

TdxRichEditControlBase Members

dxRichEdit.Control.Core Unit