共用方式為


PreviousTableCellProperties Class

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

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Wordprocessing.PreviousTableCellProperties

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(NoWrap))> _
<ChildElementInfoAttribute(GetType(CellMerge))> _
<ChildElementInfoAttribute(GetType(TableCellWidth))> _
<ChildElementInfoAttribute(GetType(GridSpan))> _
<ChildElementInfoAttribute(GetType(HorizontalMerge))> _
<ChildElementInfoAttribute(GetType(VerticalMerge))> _
<ChildElementInfoAttribute(GetType(TableCellBorders))> _
<ChildElementInfoAttribute(GetType(Shading))> _
<ChildElementInfoAttribute(GetType(ConditionalFormatStyle))> _
<ChildElementInfoAttribute(GetType(TableCellMargin))> _
<ChildElementInfoAttribute(GetType(TextDirection))> _
<ChildElementInfoAttribute(GetType(TableCellFitText))> _
<ChildElementInfoAttribute(GetType(TableCellVerticalAlignment))> _
<ChildElementInfoAttribute(GetType(HideMark))> _
<ChildElementInfoAttribute(GetType(CellInsertion))> _
<ChildElementInfoAttribute(GetType(CellDeletion))> _
Public Class PreviousTableCellProperties _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As PreviousTableCellProperties
[ChildElementInfoAttribute(typeof(NoWrap))]
[ChildElementInfoAttribute(typeof(CellMerge))]
[ChildElementInfoAttribute(typeof(TableCellWidth))]
[ChildElementInfoAttribute(typeof(GridSpan))]
[ChildElementInfoAttribute(typeof(HorizontalMerge))]
[ChildElementInfoAttribute(typeof(VerticalMerge))]
[ChildElementInfoAttribute(typeof(TableCellBorders))]
[ChildElementInfoAttribute(typeof(Shading))]
[ChildElementInfoAttribute(typeof(ConditionalFormatStyle))]
[ChildElementInfoAttribute(typeof(TableCellMargin))]
[ChildElementInfoAttribute(typeof(TextDirection))]
[ChildElementInfoAttribute(typeof(TableCellFitText))]
[ChildElementInfoAttribute(typeof(TableCellVerticalAlignment))]
[ChildElementInfoAttribute(typeof(HideMark))]
[ChildElementInfoAttribute(typeof(CellInsertion))]
[ChildElementInfoAttribute(typeof(CellDeletion))]
public class PreviousTableCellProperties : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • ConditionalFormatStyle <w:cnfStyle>

  • TableCellWidth <w:tcW>

  • GridSpan <w:gridSpan>

  • HorizontalMerge <w:hMerge>

  • VerticalMerge <w:vMerge>

  • TableCellBorders <w:tcBorders>

  • Shading <w:shd>

  • NoWrap <w:noWrap>

  • TableCellMargin <w:tcMar>

  • TextDirection <w:textDirection>

  • TableCellFitText <w:tcFitText>

  • TableCellVerticalAlignment <w:vAlign>

  • HideMark <w:hideMark>

  • CellInsertion <w:cellIns>

  • CellDeletion <w:cellDel>

  • CellMerge <w:cellMerge>

[ISO/IEC 29500-1 1st Edition]

17.4.71 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:tc>
<w:tcPr>
<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:tcPr>
<w:tcW w:w="4788" w:type="dxa"/>
</w:tcPr>
</w:tcPrChange>
</w:tcPr>
<w:p/>
</w:tc>

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 (§17.13.5.36)

Child Elements

Subclause

cellDel (Table Cell Deletion)

§17.13.5.1

cellIns (Table Cell Insertion)

§17.13.5.2

cellMerge (Vertically Merged/Split Table Cells)

§17.13.5.3

cnfStyle (Table Cell Conditional Formatting)

§17.4.8

gridSpan (Grid Columns Spanned by Current Table Cell)

§17.4.17

headers (Header Cells Associated With Table Cell)

§17.4.19

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

§17.4.21

hMerge (Horizontally Merged Cell)

§17.4.22

noWrap (Don't Wrap Cell Content)

§17.4.30

shd (Table Cell Shading)

§17.4.33

tcBorders (Table Cell Borders)

§17.4.67

tcFitText (Fit Text Within Cell)

§17.4.68

tcMar (Single Table Cell Margins)

§17.4.69

tcW (Preferred Table Cell Width)

§17.4.72

textDirection (Table Cell Text Flow Direction)

§17.4.73

vAlign (Table Cell Vertical Alignment)

§17.4.84

vMerge (Vertically Merged Cell)

§17.4.85

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

© ISO/IEC29500: 2008.

Thread Safety

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

See Also

Reference

PreviousTableCellProperties Members

DocumentFormat.OpenXml.Wordprocessing Namespace