w:trHeight (Table Row Height)

Specifies the height of a table row, with a rule of 'auto', 'atLeast', or 'exact'.

Parent elements

Description

w:trHeight sets the height of a table row. It is defined in ECMA-376 Part 1 §17.4.81.

The w:hRule attribute governs how the value is applied: auto allows the row to expand to fit its content, exact fixes the height rigidly (content may be clipped), and atLeast sets a minimum height.

Attributes

Attribute Type Possible Values Description
w:val ST_TwipsMeasure Non-negative integer in twips (e.g. 567 ≈ 1 cm, 720 = 0.5 in). Row height value.
w:hRule ST_HeightRule auto (default — auto-size to content), exact (fixed), atLeast (minimum) How the w:val height is interpreted.

Examples

<!-- Minimum row height of 1 cm -->
<w:trPr>
  <w:trHeight w:val="567" w:hRule="atLeast"/>
</w:trPr>