ChangeTableColumnPreferredWidthCommand.execute(preferredWidth) Method

Executes the ChangeTableColumnPreferredWidthCommand command with the specified parameter.

Declaration

execute(
    preferredWidth: TableWidthUnit
): boolean

Parameters

Name Type Description
preferredWidth TableWidthUnit

A TableWidthUnit object specifying preferred width of the selected table columns.

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:

var cellWidth = {type: ASPx.TableWidthUnitType.ModelUnits, value: richEdit.unitConverter.pixelsToTwips(150)}
richEdit.commands.changeTableColumnPreferredWidth.execute(cellWidth);
See Also