Back to Devexpress

RichEditCommands.changePageColor Property

aspnet-js-richeditcommands-c0297300.md

latest1.1 KB
Original Source

RichEditCommands.changePageColor Property

Gets a command to set the background color of all pages contained in the document.

Declaration

ts
get changePageColor(): ChangePageColorCommand

Property Value

TypeDescription
ChangePageColorCommand

An object that provides methods that execute the command and check its state.

|

Remarks

Call the execute(color) method to invoke the command. The method checks the command state (obtained via the getState method) to determine whether the action can be performed.

Usage examples:

javascript
richEdit.commands.changePageColor.execute("red");
richEdit.commands.changePageColor.execute("#FF0000");

Refer to the following section for more information: Client Commands.

See Also

RichEditCommands Class

RichEditCommands Members