Rows.HeightRule 属性 (Word)Rows.HeightRule Property (Word)

返回或设置确定指定的单元格或行高度的规则。Returns or sets the rule for determining the height of the specified cells or rows. 读/写高度的方法Read/write WdRowHeightRule .

语法Syntax

expressionexpression. HeightRule

expression:必需。expression Required. 代表集合的变量。A variable that represents a 'Rows' collection.

示例Example

本示例将确定所选行高度的规则设为按行中最高的单元格自动调整。This example sets the height rule for the selected rows to automatically adjust to the tallest cell in the row.

If Selection.Information(wdWithInTable) = True Then 
 Selection.Rows.HeightRule = wdRowHeightAuto 
Else 
 MsgBox "The insertion point is not in a table." 
End If

另请参阅See also

行集合对象Rows Collection Object