Skip to main content

ChangeFontSubscriptCommand.execute Method

Executes the ChangeFontSubscriptCommand command with the specified parameter.

Declaration

execute(
    fontSubscript?: boolean
): boolean

Parameters

Name Type Description
fontSubscript boolean

true to apply subscript formatting to the text, false to remove subscript formatting.

Returns

Type Description
boolean

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

Remarks

Usage example:

richEdit.commands.changeFontSubscript.execute(true);
See Also