Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

PreviousTableCellProperties class

Previous Table Cell Properties. When the object is serialized out as xml, its qualified name is w:tcPr.


Namespace:  DocumentFormat.OpenXml.Wordprocessing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public class PreviousTableCellProperties : OpenXmlCompositeElement

[ISO/IEC 29500-1 1st Edition]

tcPr (Previous Table Cell Properties)

This element specifies a previous set of table cell properties, the modifications to which shall be attributed to a revision by a particular author and at a particular time. This element contains the table cell property settings which were previously in place before a specific set of revisions by one author. Each unique property is specified by a child element of this element. In any instance where there is a conflict between the table level, table-level exception, or row level properties with a corresponding table cell property, these properties shall overwrite the table or row wide properties.

[Example: Consider a basic two row by two column table as follows:

If the cell shading in the first cell is set to red with revision tracking enabled, as follows:

This revision is specified as follows in the associated WordprocessingML:

    <w:tcW w:w="4788" w:type="dxa"/>
    <w:shd w:val="clear" w:color="auto" w:fill="FF0000"/>
    <w:tcPrChange w:id="2" …>
        <w:tcW w:w="4788" w:type="dxa"/>

The tcPr element beneath the tcPrChange element specifies the set of table cell properties which were in place before the current revision to the document. end example]

Parent Elements

tcPrChange (§

Child Elements


cellDel (Table Cell Deletion)


cellIns (Table Cell Insertion)


cellMerge (Vertically Merged/Split Table Cells)


cnfStyle (Table Cell Conditional Formatting)


gridSpan (Grid Columns Spanned by Current Table Cell)


headers (Header Cells Associated With Table Cell)


hideMark (Ignore End Of Cell Marker In Row Height Calculation)


hMerge (Horizontally Merged Cell)


noWrap (Don't Wrap Cell Content)


shd (Table Cell Shading)


tcBorders (Table Cell Borders)


tcFitText (Fit Text Within Cell)


tcMar (Single Table Cell Margins)


tcW (Preferred Table Cell Width)


textDirection (Table Cell Text Flow Direction)


vAlign (Table Cell Vertical Alignment)


vMerge (Vertically Merged Cell)


[Note: The W3C XML Schema definition of this element’s content model (CT_TcPrInner) is located in §A.1. end note]

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2015 Microsoft