cut

RichEditCommands.changeStyle Property

Gets a command to apply a character or paragraph style settings to text in a selected range.

Declaration

readonly changeStyle: ChangeStyleCommand

Property Value

Type Description
ChangeStyleCommand

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

Remarks

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

You can access the character and paragraph style settings via the RichEditDocument.characterStylesInfo and RichEditDocument.paragraphStylesInfo arrays.


richEdit.commands.changeStyle.execute(richEdit.document.characterStylesInfo[2])
See Also