ChangeFontFormattingCommand.execute(settings) Method

Executes the ChangeFontFormattingCommand command with the specified parameter.

Declaration

execute(
    settings: FontFormattingSettings
): boolean

Parameters

Name Type Description
settings FontFormattingSettings

A FontFormattingSettings object specifying font formatting settings.

Returns

Type Description
boolean

true if the command has been successfully executed; false if the command execution has failed.

Remarks

Usage example:

richEdit.commands.changeFontFormatting.execute({strikeout: true, size: 25, foreColor: "red"});
See Also