Skip to main content

ChangeFontItalicCommand.execute Method

Executes the ChangeFontItalicCommand command with the specified parameter.

#Declaration

TypeScript
execute(
    fontItalic?: boolean
): boolean

#Parameters

Name Type Description
fontItalic boolean

true to apply italic formatting to the text, false to remove italic 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.changeFontItalic.execute(true);
See Also