ChangeTableColumnPreferredWidthCommand.execute(preferredWidth) Method
In This Article
Executes the ChangeTableColumnPreferredWidthCommand command with the specified parameter.
#Declaration
TypeScript
execute(
preferredWidth: TableWidthUnit
): boolean
#Parameters
Name | Type | Description |
---|---|---|
preferred |
Table |
A Table |
#Returns
Type | Description |
---|---|
boolean |
|
#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