ChangeFloatingObjectLockAspectRatioCommand.execute(lockAspectRatio) Method

Executes the ChangeFloatingObjectLockAspectRatioCommand command with the specified parameter.

Declaration

execute(
    lockAspectRatio: boolean
): boolean

Parameters

Name Type Description
lockAspectRatio boolean

true to lock the aspect ratio and maintain the proportions; otherwise, false.

Returns

Type Description
boolean

true if the command has been successfully executed; false if the command execution has failed.

Remarks

Usage example:

richEdit.commands.changeFloatingObjectLockAspectRatio.execute(true);
See Also