Partager via


BottomMargin Class

Table Cell Bottom Margin Default.When the object is serialized out as xml, its qualified name is w:bottom.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Wordprocessing.TableWidthType
        DocumentFormat.OpenXml.Wordprocessing.BottomMargin

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

Syntax

'Declaration
Public Class BottomMargin _
    Inherits TableWidthType
'Usage
Dim instance As BottomMargin
public class BottomMargin : TableWidthType

Remarks

[ISO/IEC 29500-1 1st Edition]

17.4.2 bottom (Table Cell Bottom Margin Exception)

This element specifies the amount of space which shall be left between the bottom extent of the cell contents and the border of a specific table cell within a table. This setting shall override the table cell bottom margin definition specified by the bottom element contained within the table properties (§17.4.5).

This value is specified in the units applied via its type attribute. Any width value of type pct or auto for this element shall be ignored.

If omitted, then this table cell shall use the bottom cell margins defined in the bottom element contained within the table properties (§17.4.5).

[Example: Consider a table with two cells in which the first table cell’s bottom margin is specified via an exception to be ten times larger (0.2 inches vs. 0.02 inches) than the other table cell margins:

This text fills the extents of the cell.

So does this

The first cell in the table would be specified using the following WordprocessingML:

<w:tc>
<w:tcPr>
<w:tcMar>
<w:bottom w:w="288" w:type="dxa" />
</w:tcMar>
</w:tcPr>
</w:tc>

The first cell in this table has an exception applied to the table cell bottom cell margin setting it to 288 twentieths of a point (0.2 inches). end example]

Parent Elements

tcMar (§17.4.69)

This element’s content model is defined by the common table measurement definition in §17.4.88.

[ISO/IEC 29500-1 1st Edition]

17.4.3 bottom (Table Cell Bottom Border)

This element specifies the border which shall be displayed at the bottom of the current table cell. The appearance of this table cell border in the document shall be determined by the following settings:

  • If the net tblCellSpacing element value (§17.4.45;§17.4.44;§17.4.46) applied to the cell is non-zero, then the cell border shall always be displayed

  • Otherwise, the display of the border is subject to the conflict resolution algorithm defined by the tcBorders element (§17.4.67) and the tblBorders element (§17.4.40;§17.4.39)

If this element is omitted, then the bottom of this table cell shall not have a cell border, and its border can use the table's border settings as appropriate.

[Example: Consider a table in which the first cell in the first row specifies a bottom cell border

R1C1

R1C2

R2C1

R2C2

This bottom cell border is specified using the following WordprocessingML:

<w:tc>
<w:tcPr>
…
<w:tcBorders>
<w:bottom w:val="thinThickThinSmallGap" w:sz="24" w:space="0" w:color="FF0000"/>
</w:tcBorders>
</w:tcPr>
<w:p/>
</w:tc>

The bottom element specifies a three point border of type thinThinThickSmallGap. end example]

Parent Elements

tcBorders (§17.4.67)

This element’s content model is defined by the common border properties definition in §17.3.4.

[ISO/IEC 29500-1 1st Edition]

17.4.5 bottom (Table Cell Bottom Margin Default)

This element specifies the amount of space which shall be left between the bottom extent of the cell contents and the border of all table cells within the parent table (or table row). This setting can be overridden by the table cell bottom margin definition specified by the bottom element contained within the table cell's properties (§17.4.2).

This value is specified in the units applied via its type attribute. Any width value of type pct or auto for this element shall be ignored.

If this element is omitted, then it shall inherit the table cell margin from the associated table style. If a bottom margin is never specified in the style hierarchy, then this table shall have no bottom cell padding by default (excepting individual cell overrides).

[Example: Consider a two by two table in which the default table cell bottom margin is specified to be exactly 0.25 inches, as follows (marked with an arrow in the first table cell below):

R1C1

R2C1

R2C1

R2C2

This table property is specified using the following WordprocessingML markup:

<w:tbl>
<w:tblPr>
<w:tblCellMar>
<w:bottom w:w="360" w:type="dxa"/>
</w:tblCellMar>
</w:tblPr>
…
</w:tbl>

Every cell in the table has a default cell margin setting it to 360 twentieths of a point. end example]

Parent Elements

tblCellMar (§17.4.42); tblCellMar (§17.4.43)

This element’s content model is defined by the common table measurement definition in §17.4.88.

© 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

BottomMargin Members

DocumentFormat.OpenXml.Wordprocessing Namespace