Export (0) Print
Expand All

PreviousTableRowProperties class

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

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

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

[ChildElementInfoAttribute(typeof(TableRowHeight))]
[ChildElementInfoAttribute(typeof(WidthBeforeTableRow))]
[ChildElementInfoAttribute(typeof(ConditionalFormatStyle))]
[ChildElementInfoAttribute(typeof(DivId))]
[ChildElementInfoAttribute(typeof(GridBefore))]
[ChildElementInfoAttribute(typeof(GridAfter))]
[ChildElementInfoAttribute(typeof(CantSplit))]
[ChildElementInfoAttribute(typeof(TableJustification))]
[ChildElementInfoAttribute(typeof(Hidden))]
[ChildElementInfoAttribute(typeof(WidthAfterTableRow))]
[ChildElementInfoAttribute(typeof(TableHeader))]
[ChildElementInfoAttribute(typeof(TableCellSpacing))]
public class PreviousTableRowProperties : OpenXmlCompositeElement

[ISO/IEC 29500-1 1st Edition]

trPr (Previous Table Row 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. These properties affect the appearance of all cells in the current row within the parent table, but can be overridden by individual cell-level properties, as defined by each property.

[Example: Consider the following WordprocessingML table:

Some text in R1C1.

This table has a row height for row one of exactly 0.1". If we change that to a row height of at least 0.1" with revision marking enabled, the table would appear as follows:

Some text in R1C1.

The resulting WordprocessingML would be:

<w:tr>
  <w:trPr>
    <w:trHeight w:val="144"/>
    <w:trPrChange w:id="2" … >
      <w:trPr>
        <w:trHeight w:hRule="exact" w:val="144"/>
      </w:trPr>
    </w:trPrChange>
  </w:trPr>
  …</w:tr>

The trPr element as a child of trPrChange specifies the set of table row properties which were in place before the current revision to the document. end example]

Parent Elements

trPrChange (§17.13.5.37)

Child Elements

Subclause

cantSplit (Table Row Cannot Break Across Pages)

§17.4.6

cnfStyle (Table Row Conditional Formatting)

§17.4.7

divId (Associated HTML div ID)

§17.4.9

gridAfter (Grid Columns After Last Cell)

§17.4.14

gridBefore (Grid Columns Before First Cell)

§17.4.15

hidden (Hidden Table Row Marker)

§17.4.20

jc (Table Row Alignment)

§17.4.28

tblCellSpacing (Table Row Cell Spacing)

§17.4.44

tblHeader (Repeat Table Row on Every New Page)

§17.4.50

trHeight (Table Row Height)

§17.4.81

wAfter (Preferred Width After Table Row)

§17.4.86

wBefore (Preferred Width Before Table Row)

§17.4.87

[Note: The W3C XML Schema definition of this element’s content model (CT_TrPrBase) 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.

Community Additions

Show:
© 2014 Microsoft