ChangeTableFormattingCommand.execute(settings) Method

Executes the ChangeTableFormattingCommand command with the specified parameter.

Declaration

execute(
    settings: TableFormattingSettings
): boolean

Parameters

Name Type Description
settings TableFormattingSettings

A TableFormattingSettings object containing the settings to format a table.

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 tableSettings = {
    alignment: ASPx.TableRowAlignment.Right,
    indent: richEdit.unitConverter.pixelsToTwips(200),
    allowSpacingBetweenCells: true,
    spacingBetweenCells: richEdit.unitConverter.pixelsToTwips(3)
};
richEdit.commands.changeTableFormatting.execute(tableSettings);
See Also