Skip to content

<tr> element

The <tr> element represents a row of a table. Each table can have one or more rows, and each <row> can have one or more cells.

Attributes

Attribute Description
left The left offset of the header in pixels.
top The top offset of the header in pixels.
width The width of the header in pixels.
height The height of the header in pixels.
styles Contains a semicolon delimited list of name:value pair style information values.

Styles

Node Description
height Contains the height of the cell, unit of measure is stored in heightRule.
heightRule Contains the rule to use when applying height, can be one of the following:- AtLeast- Exact- None
percentScale Contains the percentage of width to take, expresses as an integer.
percentWidth Contains the percentage of width to take, expresses as a double.
fixedWidth If present, indicates that the cell should be this width in pixels.
widthType Indicates the how width is applied, can be one of the following:- Auto- Percentage- Point
borderLeft Contains details (width, color, style) for the left border.
borderRight Contains details (width, color, style) for the right border.
borderTop Contains details (width, color, style) for the top border.
borderBottom Contains details (width, color, style) for the bottom border.
allowSplit Indicates whether the row scan be split across pages.
keepWithNext Indicates that the rows are to be kept together.
borderInternalVert Contains details (width, color, style) for the internal vertical borders.
borderInternalHorz Contains details (width, color, style) for the internal horizontal borders.

Children

Node Description
<td> A row can contain one or more Table Cell <td> elements.