Skip to main content

DeleteTextCmd

Classes​

DeleteTextCmd​

The command to delete the selected text or character relative to the current cursor position.

Implements​

Constructors​

Constructor​
new DeleteTextCmd(textManager, initData): DeleteTextCmd;
Parameters​
ParameterType
textManagerITextManager
initDataDeleteTextCmdData
Returns​

DeleteTextCmd

Methods​

execute()​
execute(): boolean;

Executes the command.

Returns​

boolean

true if changes were made, false otherwise.

Implementation of​

ICommand.execute


DeleteTextCmdData​

Data required to initialize the command.

Constructors​

Constructor​
new DeleteTextCmdData(direction): DeleteTextCmdData;
Parameters​
ParameterType
directionMoveDirectionType
Returns​

DeleteTextCmdData

Properties​

direction​
direction: MoveDirectionType;

Direction of text deletion.

Was this page helpful?