[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

col (Single Column Definition)

This element specifies the properties for a single column of text within this section.

[Example: Consider a single column with a width of two inches, which also has a one-inch space after the column, resulting in the following WordprocessingML:

<w:cols … >
<w:col w:w="2880" w:space="1440"/>


</w:cols>

The resulting column specifies its width of 2,880 twentieths of a point and space following of 1,440 twentieths of a point. end example]

The contents of the col element are only used to calculate the number and size of columns if the fixedWidth attribute is set to false or omitted.

Parent Elements

cols2.6.4)

 

Attributes

Description

space (Space Before Following Column)

Specifies the spacing (in twentieths of a point) between the current column and the next column.

 

[Example: Consider a text column that is to have a one-inch space after it. This text column spacing would therefore be 1x72=144 points wide, which translates to 1,440 twentieths of a point. The resulting WordprocessingML specifies that spacing width in twentieths of a point:

 

<w:col … w:space="1440"/>

 

end example]

 

For the last text column in the section, no spacing is allowed after the column, and, if present, any space value is ignored.

 

The possible values for this attribute are defined by the ST_TwipsMeasure simple type2.18.105).

w (Column Width)

Specifies the width (in twentieths of a point) of this text column.

 

[Example: Consider a text column, which is to be two inches wide. This text column would therefore be 2x72=144 points wide, which translates to 2,880 twentieths of a point. The resulting WordprocessingML specifies that column width in twentieths of a point:

 

<w:col … w:w="2880"/>

 

end example]

 

The possible values for this attribute are defined by the ST_TwipsMeasure simple type2.18.105).

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

<complexType name="CT_Column">

   <attribute name="w" type="ST_TwipsMeasure" use="optional"/>

   <attribute name="space" type="ST_TwipsMeasure" use="optional"/>

</complexType>