<cols>
(Column Definitions)
This element specifies the set of columns defined for this section in the document.
<w:cols w:equalWidth="0"> <w:col w:w="2640" w:space="720"/> <w:col w:w="6000"/> </w:cols>
The <cols>
element defines the set of columns defined for this section, which because @equalWidth
is 0
, are defined by the number of <col>
elements contained in the column definition. In this case, the first column is 2,640
twentieths of a point wide (as 2640/1440ths of an inch equals 1.83 inches) with one-half of an inch space after, and the second column is 6,000
twentieths of a point wide (4.16 inches). ]
Based on the presence of the @equalWidth
attribute, a consumer shall render the columns using:
If
@equalWidth
istrue
, then the columns are defined using the data stored as attributes of the<cols>
element (defined below).If
@equalWidth
isfalse
, then the columns are defined using the presence and data on each child<col>
element (§2.6.3).
Child Elements |
Subclause |
---|---|
|
Attributes |
Description |
---|---|
|
Specifies whether all text columns in the current section are of equal width. If this attribute is present and its value is set to
If this attribute is present and its value is set to
<w:cols w:num="3" w:space="1440" w:equalWidth="1"> <w:col w:w="2880" w:space="2880" /> <w:col w:w="2880" w:space="1440" /> <w:col w:w="2880" /> </w:cols> This set of columns has a The possible values for this attribute are defined by the ST_OnOff simple type (§2.18.67). |
|
Specifies the number of text columns in the current section. If all columns are not of equal width (the <w:cols w:num="3" w:space="1440" w:equalWidth="1"> … </w:cols> This set of columns has a The possible values for this attribute are defined by the ST_DecimalNumber simple type (§2.18.16). |
|
Specifies if a vertical line is drawn between each of the text columns in this section. If set to [Example: Consider a section with column information defined as follows: <w:cols w:sep="1"> … </w:cols> This set of columns has a The possible values for this attribute are defined by the ST_OnOff simple type (§2.18.67). |
|
Specifies the spacing between text columns in the current section. If all columns are not of equal width (the <w:cols w:num="3" w:space="1440" w:equalWidth="1"> … </w:cols> This set of columns has a The possible values for this attribute are defined by the ST_TwipsMeasure simple type (§2.18.105). |
The following XML Schema fragment defines the contents of this element:
<complexType name="CT_Columns">
<sequence minOccurs="0">
<element name="col" type="CT_Column" maxOccurs="45"/>
</sequence>
<attribute name="equalWidth" type="ST_OnOff" use="optional"/>
<attribute name="space" type="ST_TwipsMeasure" use="optional"/>
<attribute name="num" type="ST_DecimalNumber" use="optional"/>
<attribute name="sep" type="ST_OnOff" use="optional"/>
</complexType>