Skip to main content

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
ParameterType
textManagerITextManager
fontRegistryIFontRegistry
initDataSetCharStyleCmdData
Returns

SetCharStyleCmd

Methods

execute()
execute(): boolean;

Executes the command.

Returns

boolean

true if changes were made, false otherwise.

Implementation of

ICommand.execute


SetCharStyleCmdData

Data required to initialize the command.

Constructors

Constructor
new SetCharStyleCmdData(): SetCharStyleCmdData;
Returns

SetCharStyleCmdData

Properties

style
style: ICharStyle;

Character style.

Was this page helpful?