The td element represents a cell in a table. This element may contain p elements and table elements.
Description
Attributes
Attribute Name | Optional | Data Type |
width | No | Integer >= 0. Units in twips* |
borders | Yes | String. 0 = none, 15 = thin, 30 = medium, 45 = thick. * |
bordercolors | Yes | String. Units in OLE color. ** |
bgcolor | Yes | Integer >= 0. Units in OLE color. |
rowspan | Yes | Integer > 0 |
colspan | Yes | Integer > 0 |
shading | Yes | Integer 0 to 100 |
* Twentieth of a point. This measurement is dependent on screen resolution. Generally there are 15 twips per pixel.
** An integer representing the OLE Color. In the .NET framework you can use Drawing.ColorTranslator.FromOLE to convert this. Either a single number when all four borders are the same, or 4 comma separated numbers representing left, right, top, bottom borders.
Parent Element
table
Children
Element | Optional | Occurs |
p | Yes | Zero to many times |
table | Yes | Zero to many times |
Values
None
Sample XML
<tr rowheight="0">
- <td width="1080" bordercolors="65793">
<p id="3">one</p>
</td>
- <td width="1170" borders="45" bordercolors="65793">
<p id="3">two</p>
</td>
</tr>