ChangeParagraphBackColorCommand.execute(color) Method

Executes the ChangeParagraphBackColorCommand command with the specified parameter.

Declaration

execute(color: string): boolean

Parameters

Name Type Description
color string

A string specifying a background color of the paragraphs in a selected range. May be specified as a color name or a hex color value.

Returns

Type Description
boolean

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

Remarks

Usage example:


richEdit.commands.changeParagraphBackColor.execute("red");
richEdit.commands.changeParagraphBackColor.execute("#FF0000");
See Also