共用方式為


TableGrid Class

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.TableGrid

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

Syntax

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

Remarks

The following table lists the possible child types:

  • GridColumn <w:gridCol>

  • TableGridChange <w:tblGridChange>

[ISO/IEC 29500-1 1st Edition]

17.4.49 tblGrid (Table Grid)

This element specifies the table grid for the current table. 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).

If the table grid is omitted, then a new grid shall be constructed from the actual contents of the table assuming that all grid columns have a width of 0.

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

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="3192"/>
<w:gridCol w:w="3192"/>
</w:tblGrid>

The tblGrid element contains the current definition for the table grid, consisting of all for grid columns as well as default widths for those columns. end example]

Parent Elements

tbl (§17.4.38)

Child Elements

Subclause

gridCol (Grid Column Definition)

§17.4.16

tblGridChange (Revision Information for Table Grid Column Definitions)

§17.13.5.33

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

TableGrid Members

DocumentFormat.OpenXml.Wordprocessing Namespace