[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

right (Table Cell Right Margin Exception)

This element specifies the amount of space which shall be present between the right extent of the current cell's text contents and the right border of a specific individual table cell within a table. This setting shall override the table cell bottom margin definition specified by the right element contained within the table properties (§2.4.29).

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 right element contained within the table properties (§2.4.29).

[Example: Consider a two row, two column table in which the first table cell in the second row has a right margin which is specified via an exception to be 0.5 inches, the region marked with an arrow in the table below:

R1C1

R1C2

R2C1

R2C2

 

The exception on this cell would be specified using the following WordprocessingML:

<w:tc>
<w:tcPr>
<w:tcMar>
<w:right w:w="720" w:type="dxa" />
</w:tcMar>
</w:tcPr>


</w:tc>

The R2C1 cell in this table has an exception applied to the table cell right cell margin setting it to 720 twentieths of a point (0.5 inches). end example]

Parent Elements

tcMar2.4.65)

 

Attributes

Description

type (Table Width Type)

Specifies the units of the width property being defined by the parent element’s w attribute. This property is used to define various properties of a table, including: cell spacing, preferred width, and table margins.

 

If this attribute is omitted, then its value shall be assumed to be dxa (twentieths of a point).

 

[Example: Consider a table with a table cell bottom cell spacing with a type of dxa, as follows:

 

<w:bottom ... w:type="dxa" />

 

This type shall therefore be used to interpret the width specified in the w attribute as a value in twentieths of a point. end example]

 

The possible values for this attribute are defined by the ST_TblWidth simple type2.18.97).

w (Table Width Value)

Specifies the value of the width property being defined by the parent element. This property is used to define various properties of a table, including: cell spacing, preferred widths, and table margins.

 

If this attribute is omitted, then its value shall be assumed to be 0.

 

[Example: Consider a table with a bottom margin with a width of 302, as follows:

 

<w:bottom w:w="302" w:type="dxa" />

 

The value in the w attribute shall therefore be used to determine the width being specified in the context of the units specified in the type attribute. In this case, the type is twentieths of a point (dxa), so the width is 302 twentieths of a point (.2097 inches). end example]

 

The possible values for this attribute are defined by the ST_DecimalNumber simple type2.18.16).

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_TblWidth">

   <attribute name="w" type="ST_DecimalNumber"/>

   <attribute name="type" type="ST_TblWidth"/>

</complexType>