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
| Parameter | Type |
|---|---|
textManager | ITextManager |
initData | SetAlignmentCmdData |
Returns
Methods
execute()
execute(): boolean;
Executes the command.
Returns
boolean
true if changes were made, false otherwise.
Implementation of
SetAlignmentCmdData
Data required to initialize the command.
Constructors
Constructor
new SetAlignmentCmdData(alignment): SetAlignmentCmdData;
Parameters
| Parameter | Type |
|---|---|
alignment | TextAlignment |
Returns
Properties
alignment
alignment: TextAlignment;
Text alignment type.