Back to Devexpress

RichEditCommands.changePictureScale Property

aspnet-js-richeditcommands-449cf8a7.md

latest1.3 KB
Original Source

RichEditCommands.changePictureScale Property

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

Declaration

ts
get changePictureScale(): ChangePictureScaleCommand

Property Value

TypeDescription
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:

javascript
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

RichEditCommands Class

RichEditCommands Members