PreviousTableRowProperties Class
Previous Table Row Properties.When the object is serialized out as xml, its qualified name is w:trPr.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlCompositeElement
DocumentFormat.OpenXml.Wordprocessing.PreviousTableRowProperties
Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
<ChildElementInfoAttribute(GetType(TableHeader))> _
<ChildElementInfoAttribute(GetType(ConditionalFormatStyle))> _
<ChildElementInfoAttribute(GetType(DivId))> _
<ChildElementInfoAttribute(GetType(GridBefore))> _
<ChildElementInfoAttribute(GetType(GridAfter))> _
<ChildElementInfoAttribute(GetType(WidthBeforeTableRow))> _
<ChildElementInfoAttribute(GetType(WidthAfterTableRow))> _
<ChildElementInfoAttribute(GetType(TableRowHeight))> _
<ChildElementInfoAttribute(GetType(Hidden))> _
<ChildElementInfoAttribute(GetType(CantSplit))> _
<ChildElementInfoAttribute(GetType(TableCellSpacing))> _
<ChildElementInfoAttribute(GetType(TableJustification))> _
Public Class PreviousTableRowProperties _
Inherits OpenXmlCompositeElement
'Usage
Dim instance As PreviousTableRowProperties
[ChildElementInfoAttribute(typeof(TableHeader))]
[ChildElementInfoAttribute(typeof(ConditionalFormatStyle))]
[ChildElementInfoAttribute(typeof(DivId))]
[ChildElementInfoAttribute(typeof(GridBefore))]
[ChildElementInfoAttribute(typeof(GridAfter))]
[ChildElementInfoAttribute(typeof(WidthBeforeTableRow))]
[ChildElementInfoAttribute(typeof(WidthAfterTableRow))]
[ChildElementInfoAttribute(typeof(TableRowHeight))]
[ChildElementInfoAttribute(typeof(Hidden))]
[ChildElementInfoAttribute(typeof(CantSplit))]
[ChildElementInfoAttribute(typeof(TableCellSpacing))]
[ChildElementInfoAttribute(typeof(TableJustification))]
public class PreviousTableRowProperties : OpenXmlCompositeElement
Remarks
The following table lists the possible child types:
ConditionalFormatStyle <w:cnfStyle>
DivId <w:divId>
GridBefore <w:gridBefore>
GridAfter <w:gridAfter>
WidthBeforeTableRow <w:wBefore>
WidthAfterTableRow <w:wAfter>
TableRowHeight <w:trHeight>
Hidden <w:hidden>
CantSplit <w:cantSplit>
TableHeader <w:tblHeader>
TableCellSpacing <w:tblCellSpacing>
TableJustification <w:jc>
[ISO/IEC 29500-1 1st Edition]
17.4.83 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.
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.