PreviousTableGrid Class

Previous Table Grid.When the object is serialized out as xml, its qualified name is w:tblGrid.

Inheritance Hierarchy

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

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

Syntax

'Declaration
<ChildElementInfoAttribute(GetType(GridColumn))> _
Public Class PreviousTableGrid _
    Inherits OpenXmlCompositeElement
'Usage
Dim instance As PreviousTableGrid
[ChildElementInfoAttribute(typeof(GridColumn))]
public class PreviousTableGrid : OpenXmlCompositeElement

Remarks

The following table lists the possible child types:

  • GridColumn <w:gridCol>

[ISO/IEC 29500-1 1st Edition]

17.4.48 tblGrid (Previous Table Grid)

This element specifies a previous table grid state, the modifications to which shall be attributed to a revision by a particular author and at a particular time. This element contains the table grid settings which were previously in place before a specific set of revisions by one author. The table grid is a definition of the set of grid columns which define all of the shared vertical edges of the table, as well as default widths for each of these grid columns. These grid column widths are then used to determine the size of the table based on the table layout algorithm used (§17.4.53;§17.4.54).

[Example: Consider the following table with four vertical edges (grid columns):

If we now modify this table by reducing the size of the last column without changing the overall table width, as follows:

This table would have a table grid consisting of four grid columns as follows:

<w:tblGrid>
<w:gridCol w:w="2088"/>
<w:gridCol w:w="1104"/>
<w:gridCol w:w="3583"/>
<w:gridCol w:w="2801"/>
<w:tblGridChange w:id="1">
<w:tblGrid>
<w:gridCol w:w="2088"/>
<w:gridCol w:w="1104"/>
<w:gridCol w:w="3192"/>
<w:gridCol w:w="3192"/>
</w:tblGrid>
</w:tblGridChange>
</w:tblGrid>

The tblGrid element as a child of tblGridChange contains the previous definition for the table grid, consisting of all for grid columns as well as the original widths for those columns. end example]

Parent Elements

tblGridChange (§17.13.5.33)

Child Elements

Subclause

gridCol (Grid Column Definition)

§17.4.16

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

See Also

Reference

PreviousTableGrid Members

DocumentFormat.OpenXml.Wordprocessing Namespace