Skip to main content

ChangeTableRowPreferredHeightCommand.execute(preferredHeight) Method

Executes the ChangeTableRowPreferredHeightCommand command with the specified parameter.

Declaration

execute(
    preferredHeight: TableHeightUnit
): boolean

Parameters

Name Type Description
preferredHeight TableHeightUnit

A TableHeightUnit object specifying preferred height of the selected table rows.

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.

Applying height settings to selected table cells may lead to changing the height of the corresponding table rows.

Usage example:

var rowHeightSettings = {
    type: ASPx.TableHeightUnitType.Minimum,
    value: richEdit.unitConverter.pixelsToTwips(75)
}
richEdit.commands.changeTableRowPreferredHeight.execute(rowHeightSettings)
See Also