w:trPrChange (Revision — Table Row Properties Change)
Records a tracked change to a table row's properties, storing the previous row property state before the revision.
Description
w:trPrChange is a revision tracking element that captures the previous state of w:trPr when table row properties are changed with change tracking enabled. The current w:trPr represents the accepted (new) properties; w:trPrChange holds the original properties.
It is defined in ECMA-376 Part 1 §17.13.7.5.
Attributes
| Attribute | Type | Possible Values | Description |
|---|---|---|---|
w:id |
xsd:integer |
Positive integer | Unique revision ID within the document. |
w:author |
xsd:string |
Any string | Author name. |
w:date |
xsd:dateTime |
ISO 8601 date-time | Timestamp of the change. |
Child Elements
| Element | Description |
|---|---|
w:trPr |
The original row properties before the tracked change. |
Examples
<w:trPr>
<w:trHeight w:val="600" w:hRule="exact"/>
<w:trPrChange w:id="5" w:author="Alice" w:date="2024-04-01T08:30:00Z">
<w:trPr>
<w:trHeight w:val="400" w:hRule="exact"/>
</w:trPr>
</w:trPrChange>
</w:trPr>
using DocumentFormat.OpenXml.Wordprocessing;
var trPrChange = new TableRowPropertiesChange
{
Id = 5,
Author = "Alice",
Date = "2024-04-01T08:30:00Z"
};
trPrChange.Append(new TableRowProperties(
new TableRowHeight { Val = 400U, HeightType = HeightRuleValues.Exact }
));
Notes
w:trPrChangemust be the last child element ofw:trPr.- Works identically to
w:tblPrChangeandw:tcPrChangebut scoped to row-level properties.