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

RichEditCommands.addSpacingBeforeParagraph Property

Gets a command to add spacing before a paragraph.

Declaration

readonly addSpacingBeforeParagraph: AddSpacingBeforeParagraphCommand

Property Value

Type Description
AddSpacingBeforeParagraphCommand

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

Remarks

The command adds the 0.17 inches spacing before a current paragraph (the paragraph in which the cursor is located).

To execute the command, the spacing value before the current paragraph should equal 0.

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

richEdit.commands.addSpacingBeforeParagraph.execute();
See Also