GridBefore Class
Defines the GridBefore Class.When the object is serialized out as xml, its qualified name is w:gridBefore.
Inheritance Hierarchy
System.Object
DocumentFormat.OpenXml.OpenXmlElement
DocumentFormat.OpenXml.OpenXmlLeafElement
DocumentFormat.OpenXml.Wordprocessing.DecimalNumberType
DocumentFormat.OpenXml.Wordprocessing.GridBefore
Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
声明
Public Class GridBefore _
Inherits DecimalNumberType
用法
Dim instance As GridBefore
public class GridBefore : DecimalNumberType
Remarks
[ISO/IEC 29500-1 第 1 个版本]
17.4.15 gridBefore (Grid Columns Before First Cell)
This element specifies the number of grid columns in the parent table's table grid (§17.4.49; §17.4.48) which must be skipped before the contents of this table row (its table cells) are added to the parent table. [Note: This property is used to specify tables whose leading edge (left for left-to-right tables, right for right-to-left tables) does not start at the first grid column (the same shared edge). end note]
If this element is omitted, then its value shall be assumed to be zero grid units. If this element's value is larger than the size of the table grid, then the value shall be ignored and the first cell in the row can span the full table grid (i.e. the second cell, if one exists, should start at the last shared edge in the table).
[Example: Consider a table whose second row starts after the first grid unit:
In this table, the second row skips one grid unit at the beginning which is represented by the following WordprocessingML:
<w:tr>
<w:trPr>
<w:gridBefore w:val="1" />
…
</w:trPr>
…
</w:tr>
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:
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. 以上摘要已经由 Microsoft(和/或其代理公司)从英语翻译为简体中文,ISO 对此翻译不承担任何责任。
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.