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

PreviousTablePropertyExceptions class

Previous Table-Level Property Exceptions. When the object is serialized out as xml, its qualified name is w:tblPrEx.

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

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

[ChildElementInfoAttribute(typeof(TableLook))]
[ChildElementInfoAttribute(typeof(TableWidth))]
[ChildElementInfoAttribute(typeof(TableJustification))]
[ChildElementInfoAttribute(typeof(TableCellSpacing))]
[ChildElementInfoAttribute(typeof(TableIndentation))]
[ChildElementInfoAttribute(typeof(TableBorders))]
[ChildElementInfoAttribute(typeof(Shading))]
[ChildElementInfoAttribute(typeof(TableLayout))]
[ChildElementInfoAttribute(typeof(TableCellMarginDefault))]
public class PreviousTablePropertyExceptions : OpenXmlCompositeElement

[ISO/IEC 29500-1 1st Edition]

tblPrEx (Previous Table-Level Property Exceptions)

This element specifies a previous set of table-level property exceptions, the modifications to which shall be attributed to a revision by a particular author and at a particular time. This element contains the table-level property exceptions which were previously in place before a specific set of revisions by one author.

[Example: Consider the following two tables in a WordprocessingML document. If the interceding paragraphs between these two tables is removed and the tables are merged together, it is obviously undesirable to have the second table lose its formatting and match the properties of the first table. Therefore, when the tables are merged as follows (note that there is now only one table):

If the border type is changed to a red border of type thinThickThinSmallGap with revisions tracked, as follows:

The resulting WordprocessingML for the last three rows of the table would include the following set of table-level property exceptions with revision tracking:

<w:tr>
  <w:tblPrEx>
    <w:tblBorders>
      <w:top w:val="thinThickThinMediumGap" w:sz="24" w:space="0"       w:color="auto"/>
      <w:left w:val="thinThickThinMediumGap" w:sz="24" w:space="0"        w:color="auto"/>
      <w:bottom w:val="thinThickThinMediumGap" w:sz="24" w:space="0"        w:color="auto"/>
      <w:right w:val="thinThickThinMediumGap" w:sz="24" w:space="0"        w:color="auto"/>
      <w:insideH w:val="thinThickThinMediumGap" w:sz="24" w:space="0"        w:color="auto"/>
      <w:insideV w:val="thinThickThinMediumGap" w:sz="24" w:space="0"        w:color="auto"/>
    </w:tblBorders>
    <w:tblPrExChange w:id="9" … >
      <w:tblPrEx>
        <w:tblBorders>
          <w:top w:val="thinThickThinSmallGap" w:sz="24" w:space="0"            w:color="FF0000"/>
          <w:left w:val="thinThickThinSmallGap" w:sz="24" w:space="0"            w:color="FF0000"/>
          <w:bottom w:val="thinThickThinSmallGap" w:sz="24" w:space="0"            w:color="FF0000"/>
          <w:right w:val="thinThickThinSmallGap" w:sz="24" w:space="0"            w:color="FF0000"/>
          <w:insideH w:val="thinThickThinSmallGap" w:sz="24" w:space="0"            w:color="FF0000"/>
          <w:insideV w:val="thinThickThinSmallGap" w:sz="24" w:space="0"            w:color="FF0000"/>
        </w:tblBorders>
      </w:tblPrEx>
    </w:tblPrExChange>
  </w:tblPrEx>
  …</w:tr>

The tblPrEx element as a child of tblPrExChange contains the previous definition for the table-level property exceptions, consisting of the properties set before the current tracked revision. end example]

Parent Elements

tblPrExChange (§17.13.5.35)

Child Elements

Subclause

jc (Table Alignment Exception)

§17.4.27

shd (Table Shading Exception)

§17.4.31

tblBorders (Table Borders Exceptions)

§17.4.40

tblCellMar (Table Cell Margin Exceptions)

§17.4.42

tblCellSpacing (Table Cell Spacing Exception)

§17.4.45

tblInd (Table Indent from Leading Margin Exception)

§17.4.52

tblLayout (Table Layout Exception)

§17.4.54

tblLook (Table Style Conditional Formatting Settings Exception)

§17.4.55

tblW (Preferred Table Width Exception)

§17.4.65

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