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
| Parameter | Type |
|---|---|
textManager | ITextManager |
initData | ApplyListTypeCmdData |
Returns
Methods
execute()
execute(): boolean;
Executes the command.
Returns
boolean
true if changes were made, false otherwise.
Implementation of
ApplyListTypeCmdData
Data required to initialize the command.
Constructors
Constructor
new ApplyListTypeCmdData(): ApplyListTypeCmdData;
Returns
Properties
listType
listType: ListType;
List type.
paragraphIndexes?
optional paragraphIndexes?: number[];
Indexes of paragraphs to apply list type to list items.