Skip to main content

SetAlignmentCmd

Classes​

SetAlignmentCmd​

The command to set text alignment for the current cursor position or selected text.

Implements​

Constructors​

Constructor​
new SetAlignmentCmd(textManager, initData): SetAlignmentCmd;
Parameters​
ParameterType
textManagerITextManager
initDataSetAlignmentCmdData
Returns​

SetAlignmentCmd

Methods​

execute()​
execute(): boolean;

Executes the command.

Returns​

boolean

true if changes were made, false otherwise.

Implementation of​

ICommand.execute


SetAlignmentCmdData​

Data required to initialize the command.

Constructors​

Constructor​
new SetAlignmentCmdData(alignment): SetAlignmentCmdData;
Parameters​
ParameterType
alignmentTextAlignment
Returns​

SetAlignmentCmdData

Properties​

alignment​
alignment: TextAlignment;

Text alignment type.

Was this page helpful?