Skip to main content
A newer version of this page is available. .

ChangeParagraphFormattingCommand.getState Method

Gets information about the command state.

Declaration

getState(): CommandState<ParagraphFormattingSettings>

Returns

Type Description
CommandState<ParagraphFormattingSettings>

A CommandState<T><ParagraphFormattingSettings,> object representing the command 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