ChangeParagraphFormattingCommand.getState Method

Gets information about the command's state.

Declaration

getState(): CommandState<ParagraphFormattingSettings>

Returns

Type Description
CommandState<ParagraphFormattingSettings>

An object that contains the command's state.

Remarks

The command state contains the value of the formatting property applied to characters in the selected range. If these characters have different values of the corresponding format property, the command state's value field returns undefined.

Usage example:


richEdit.commands.changeParagraphFormatting.getState();
See Also