Skip to main content

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​
ParameterType
textManagerITextManager
initDataSetParagraphStyleCmdData
Returns​

SetParagraphStyleCmd

Methods​

execute()​
execute(): boolean;

Executes the command.

Returns​

boolean

true if changes were made, false otherwise.

Implementation of​

ICommand.execute


SetParagraphStyleCmdData​

Data required to initialize the command.

Constructors​

Constructor​
new SetParagraphStyleCmdData(): SetParagraphStyleCmdData;
Returns​

SetParagraphStyleCmdData

Properties​

style​
style: IParagraphStyle;

Paragraph style.

Was this page helpful?