PreviousTablePropertyExceptions Class

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

Inheritance Hierarchy

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

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

Syntax

声明
<ChildElementInfoAttribute(GetType(TableWidth))> _
<ChildElementInfoAttribute(GetType(TableBorders))> _
<ChildElementInfoAttribute(GetType(TableLook))> _
<ChildElementInfoAttribute(GetType(TableCellSpacing))> _
<ChildElementInfoAttribute(GetType(TableIndentation))> _
<ChildElementInfoAttribute(GetType(TableJustification))> _
<ChildElementInfoAttribute(GetType(Shading))> _
<ChildElementInfoAttribute(GetType(TableLayout))> _
<ChildElementInfoAttribute(GetType(TableCellMarginDefault))> _
Public Class PreviousTablePropertyExceptions _
    Inherits OpenXmlCompositeElement
用法
Dim instance As PreviousTablePropertyExceptions
[ChildElementInfoAttribute(typeof(TableWidth))]
[ChildElementInfoAttribute(typeof(TableBorders))]
[ChildElementInfoAttribute(typeof(TableLook))]
[ChildElementInfoAttribute(typeof(TableCellSpacing))]
[ChildElementInfoAttribute(typeof(TableIndentation))]
[ChildElementInfoAttribute(typeof(TableJustification))]
[ChildElementInfoAttribute(typeof(Shading))]
[ChildElementInfoAttribute(typeof(TableLayout))]
[ChildElementInfoAttribute(typeof(TableCellMarginDefault))]
public class PreviousTablePropertyExceptions : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • TableWidth <w:tblW>

  • TableJustification <w:jc>

  • TableCellSpacing <w:tblCellSpacing>

  • TableIndentation <w:tblInd>

  • TableBorders <w:tblBorders>

  • Shading <w:shd>

  • TableLayout <w:tblLayout>

  • TableCellMarginDefault <w:tblCellMar>

  • TableLook <w:tblLook>

[ISO/IEC 29500-1 第 1 个版本]

17.4.62 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. 以上摘要已经由 Microsoft(和/或其代理公司)从英语翻译为简体中文,ISO 对此翻译不承担任何责任。

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

PreviousTablePropertyExceptions Members

DocumentFormat.OpenXml.Wordprocessing Namespace