Skip to main content
cut

RichEditCommands.changePictureScale Property

Gets a command to scale a selected in-line picture.

Declaration

readonly changePictureScale: ChangePictureScaleCommand

Property Value

Type Description
ChangePictureScaleCommand

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

Remarks

Call the execute(x) 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 scales an image based on its initial size values multiplied by parameters as percentages.

Usage example:

richEdit.commands.changePictureScale.execute(50, 50);
richEdit.commands.changeParagraphFormatting.execute({x: 50, y: 50});

Note that the command is executable only for in-line images.

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

See Also