Skip to main content

ChangeTableBorderRepositoryItemCommand.execute(settings) Method

Executes the ChangeTableBorderRepositoryItemCommand command with the specified parameter.

Declaration

execute(
    settings: TableBorderSettings
): boolean

Parameters

Name Type Description
settings TableBorderSettings

A TableBorderSettings object specifying the repository item’s table border style.

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 examples:

var bordersWidth = richEdit.unitConverter.pointsToTwips(0.5);
richEdit.commands.changeTableBorderRepositoryItem.execute({color: "red", width: bordersWidth, style: ASPx.BorderLineStyle.Dashed});

To modify the applied settings using the Rich Edit Ribbon, use the Borders & Shadings group of the Design context tab.

See Also