Skip to main content

ChangeTableBordersAndShadingCommand.execute(settings, applyToWholeTable) Method

Executes the ChangeTableBordersAndShadingCommand command with the specified parameters.

#Declaration

TypeScript
execute(
    settings: TableBordersSettings,
    applyToWholeTable: boolean
): boolean

#Parameters

Name Type Description
settings TableBordersSettings

A TableBorderSettings object with settings specifying table borders.

applyToWholeTable boolean

true to apply the border settings to the whole table, false to apply the border settings to the selected cells.

#Returns

Type Description
boolean

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

#Remarks

Usage example:

var topBordersSettings = {color: "red", width: 2, style: ASPx.BorderLineStyle.Dashed};
rich.commands.changeTableBordersAndShading.execute({top: topBordersSettings, backgroundColor: "green"}, true)
See Also