DeleteListItemCmd
Classes
DeleteListItemCmd
The command to remove the current list item by paragraph index.
Remarks
if paragraphs indexes are not specified, then the current selection (or cursor position) is used.
Extends
Implements
Constructors
Constructor
new DeleteListItemCmd(textManager, initData?): DeleteListItemCmd;
Parameters
| Parameter | Type |
|---|---|
textManager | ITextManager |
initData? | DeleteListItemCmdData |
Returns
Overrides
Methods
execute()
execute(): boolean;
Executes the command.
Returns
boolean
true if changes were made, false otherwise.
Implementation of
DeleteListItemCmdData
Data required to initialize the command.
Constructors
Constructor
new DeleteListItemCmdData(): DeleteListItemCmdData;
Returns
Properties
paragraphIndex?
optional paragraphIndex?: number;
Index of paragraph to delete list item.