Skip to main content

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
ParameterType
textManagerITextManager
initData?DeleteListItemCmdData
Returns

DeleteListItemCmd

Overrides

ListCmd.constructor

Methods

execute()
execute(): boolean;

Executes the command.

Returns

boolean

true if changes were made, false otherwise.

Implementation of

ICommand.execute


DeleteListItemCmdData

Data required to initialize the command.

Constructors

Constructor
new DeleteListItemCmdData(): DeleteListItemCmdData;
Returns

DeleteListItemCmdData

Properties

paragraphIndex?
optional paragraphIndex?: number;

Index of paragraph to delete list item.

Was this page helpful?