Skip to main content

ChangeFontNameCommand.execute(fontName) Method

Executes the ChangeFontNameCommand command with the specified parameter.

Declaration

execute(
    fontName: string
): boolean

Parameters

Name Type Description
fontName string

A string specifying the font name.

Returns

Type Description
boolean

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

Remarks

You can get the full list of the supported fonts via calling the following command:

richEdit.commands.changeFontName.fontNames;

Usage example:

richEdit.commands.changeFontName.execute("Arial");
richEdit.commands.changeFontName.execute(richEdit.commands.changeFontName.fontNames[1]);
See Also