GridAfter Class

Defines the GridAfter Class.When the object is serialized out as xml, its qualified name is w:gridAfter.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Wordprocessing.DecimalNumberType
        DocumentFormat.OpenXml.Wordprocessing.GridAfter

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

Syntax

'Declaration
Public Class GridAfter _
    Inherits DecimalNumberType
'Usage
Dim instance As GridAfter
public class GridAfter : DecimalNumberType

Remarks

[ISO/IEC 29500-1 1st Edition]

17.4.14 gridAfter (Grid Columns After Last Cell)

This element specifies the number of grid columns in the parent table's table grid (§17.4.49; §17.4.48) which shall be left after the last cell in the table row.

If this element conflicts with the remaining size of the document grid after all table cells in this row have been added to the grid, then it shall be ignored. If this element is not specified, then its value shall be assumed to be zero grid units.

[Example: Consider a table whose second row ends before the first row by one grid unit:

In this table, the second row leaves one grid unit after its cell contents, which is represented using the following WordprocessingML:

<w:tr>
  <w:trPr>
    <w:gridAfter w:val="1" />
    …
  </w:trPr>
  …
</w:tr>

The gridAfter element specifies that 1 grid unit remains after the row's contents. end example]

Parent Elements

trPr (§17.4.82); trPr (§17.7.6.10); trPr (§17.7.6.11); trPr (§17.4.83)

Attributes

Description

val (Decimal Number Value)

Specifies that the contents of this attribute contains a decimal number.

The contents of this decimal number are interpreted based on the context of the parent XML element.

[Example: Consider the following numeric WordprocessingML property of simple type ST_DecimalNumber:

<… w:val="1512645511" />

The value of the val attribute is a decimal number whose value must be interpreted in the context of the parent element. end example]

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

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

GridAfter Members

DocumentFormat.OpenXml.Wordprocessing Namespace