Syntax
TableRowHeight [.RulerStyle = text] [, .LineSpacingRule = number] [, .LineSpacing = number or text] [, .LeftIndent = number or text] [, .Alignment = number] [, .AllowRowSplit = number] [, .PrevRow] [, .NextRow]
Remarks
Sets formats for the selected rows in a table. The arguments for the TableRowHeight statement correspond to the options on the Row tab in the Cell Height And Width dialog box (Table menu).
Argument | Explanation | |
.RulerStyle | When the left indent is changed, specifies how Word adjusts the table: 0 (zero) Word moves cells to the right. 1 Word preserves the position of the right edge of the table by narrowing all cells in the selected rows in proportion to their widths. 2 Word preserves the position of the right edge of the table by narrowing cells in the first column only. 3 Word preserves the position of the right edge of the table by narrowing all cells in the selected rows, assigning them each the same width. 4 Word indents only the row containing the insertion point (or the first row in the selection). When row height is changed, specifies which rows are affected: 0 (zero), 1, 2, or 3 If there is a selection, only the selected rows are affected. If there is no selection, all rows are affected. 4 Only the row containing the insertion point or the first row in the selection is affected. |
Argument | Explanation | |
.LineSpacingRule | The rule for determining the height of the rows: 0 (zero) Auto 1 At Least 2 Exactly | |
.LineSpacing | The height of the rows, in points or a text measurement. | |
.LeftIndent | The distance between the left edge of the text and the left margin, in points or a text measurement. | |
.Alignment | The alignment of the rows: 0 (zero) Left 1 Center 2 Right | |
.AllowRowSplit | If 1, allows text in the row to be divided at a page break. | |
.PrevRow | Selects the previous row for formatting. | |
.NextRow | Selects the next row for formatting. |
Example
This example sets a minimum row height of 2 lines for the selected rows and indents them 1 inch from the left margin:
TableRowHeight .RulerStyle = "0", .LeftIndent = "1 in", \ .LineSpacingRule = 1, .LineSpacing = "2 li", .Alignment = 0
See Also
TableColumnWidth, TableHeadings, TableSelectRow