Partager via


GridColumn Class

Table Grid Column.When the object is serialized out as xml, its qualified name is a:gridCol.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlCompositeElement
      DocumentFormat.OpenXml.Drawing.GridColumn

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

Syntax

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

Remarks

The following table lists the possible child types:

  • ExtensionList <a:extLst>

[ISO/IEC 29500-1 1st Edition]

21.1.3.2 gridCol (Table Grid Column)

This element specifies the width of a given column within a table. For each column in a table, there is an associated table grid column defining the width of the column.

[Example: Consider the following example of a table grid containing widths defined for three table grid columns:

<a:tblGrid>
<a:gridCol w="1117600"/>
<a:gridCol w="1117600"/>
<a:gridCol w="1117600"/>
</a:tblGrid>
end example]

Parent Elements

tblGrid (§21.1.3.14)

Child Elements

Subclause

extLst (Extension List)

§20.1.2.2.15

Attributes

Description

w (Width)

The width of the column in EMUs.

The possible values for this attribute are defined by the ST_Coordinate simple type (§20.1.10.16).

[Note: The W3C XML Schema definition of this element’s content model (CT_TableCol) is located in §A.4.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

GridColumn Members

DocumentFormat.OpenXml.Drawing Namespace