Skip to main content

ChangeFloatingObjectAbsoluteSizeCommand.execute(settings) Method

Executes the ChangeFloatingObjectAbsoluteSizeCommand command with the specified parameter.

Declaration

execute(
    settings: FloatingObjectAbsoluteSizeSettings
): boolean

Parameters

Name Type Description
settings FloatingObjectAbsoluteSizeSettings

A FloatingObjectAbsoluteSizeSettings object specifying absolute size settings.

Returns

Type Description
boolean

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

Remarks

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 (it is implied that selection is set to a floating object):

richEdit.commands.changeFloatingObjectAbsoluteSize.execute({absoluteWidth: richEdit.unitConverter.pixelsToTwips(100), absoluteHeight: richEdit.unitConverter.pixelsToTwips(200)});
See Also