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
| Parameter | Type |
|---|---|
textManager | ITextManager |
initData | DeleteTextCmdData |
Returns
Methods
execute()
execute(): boolean;
Executes the command.
Returns
boolean
true if changes were made, false otherwise.
Implementation of
DeleteTextCmdData
Data required to initialize the command.
Constructors
Constructor
new DeleteTextCmdData(direction): DeleteTextCmdData;
Parameters
| Parameter | Type |
|---|---|
direction | MoveDirectionType |
Returns
Properties
direction
direction: MoveDirectionType;
Direction of text deletion.