SetParagraphStyleCmd
Classes
SetParagraphStyleCmd
The command to set the paragraph style for the current cursor position or selected text.
Remarks
only properties specified in the expected style are set.
Implements
Constructors
Constructor
new SetParagraphStyleCmd(textManager, initData): SetParagraphStyleCmd;
Parameters
| Parameter | Type |
|---|---|
textManager | ITextManager |
initData | SetParagraphStyleCmdData |
Returns
Methods
execute()
execute(): boolean;
Executes the command.
Returns
boolean
true if changes were made, false otherwise.
Implementation of
SetParagraphStyleCmdData
Data required to initialize the command.
Constructors
Constructor
new SetParagraphStyleCmdData(): SetParagraphStyleCmdData;
Returns
Properties
style
style: IParagraphStyle;
Paragraph style.