Table Suite
522
Example
This example creates a table and then sets a fixed row height of 0.5 inch (36 points) for the first row.
set newDoc to make new document
set myTable to make new table at the beginning of newDoc with properties ¬
{number of rows:3, number of columns:3}
set table item height (row 1 of myTable) row height 36 ¬
height rule row height exactly
Command: set table item width
Sets the width of rows or cells in a table.
Syntax
set table item width column/cell/column options Required. An expression that returns a cell,
column, or column options object.
column width small real Required. The width (in points) of the specified column or columns.
ruler style enumeration Required. Controls the way Word adjusts cell widths. Can be one of the
following:
Constant
Description
adjust first column Preserves the column width by narrowing cells in the first column only.
adjust none
Preserves the width of all columns other than the ones that contain the
specified cells. This is the default value.
adjust proportional Preserves the column width by adjusting all cells to the right of the
specified column.
adjust same width
Preserves the column width by narrowing all cells in the specified
columns, assigning the same width to all of them.
Example
This example creates a table in a new document and sets the width of the first cell in the second row
to 1.5 inches. The example preserves the widths of the other cells in the table.
set newDoc to make new document
set myTable to make new table at the beginning of newDoc with properties ¬
{number of rows:3, number of columns:3}
set table item width (column 1 of myTable) column width ¬
(inches to points inches 1.5) ruler style adjust none