Skip to main content

ApplyListTypeCmd

Classes

ApplyListTypeCmd

The command to apply list type to list items by paragraph indexes.

Remarks

if paragraphs indexes are not specified, then the current selection (or cursor position) is used.

Implements

Constructors

Constructor
new ApplyListTypeCmd(textManager, initData): ApplyListTypeCmd;
Parameters
ParameterType
textManagerITextManager
initDataApplyListTypeCmdData
Returns

ApplyListTypeCmd

Methods

execute()
execute(): boolean;

Executes the command.

Returns

boolean

true if changes were made, false otherwise.

Implementation of

ICommand.execute


ApplyListTypeCmdData

Data required to initialize the command.

Constructors

Constructor
new ApplyListTypeCmdData(): ApplyListTypeCmdData;
Returns

ApplyListTypeCmdData

Properties

listType
listType: ListType;

List type.

paragraphIndexes?
optional paragraphIndexes?: number[];

Indexes of paragraphs to apply list type to list items.

Was this page helpful?