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