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

RichEditCommands.changeParagraphFormatting Property

Gets a command to apply formatting settings to paragraphs within a selected range.

Declaration

readonly changeParagraphFormatting: ChangeParagraphFormattingCommand

Property Value

Type Description
ChangeParagraphFormattingCommand

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

Remarks

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

The command includes size parameters assigned in twips. Use the ASPxClientRichEdit.unitConverter to convert size measure units (inches, points, pixels, centimeters) to twips.

Usage example:

richEdit.commands.changeParagraphFormatting.execute({backColor: "yellow", alignment: ASPx.ParagraphAlignment.Center, keepLinesTogether: true});

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

See Also