Freigeben über


cols element [Word 2003 XML Reference] --  Microsoft Office Word 2003 XML Software Development Kit

cols element [Word 2003 XML Reference]

Specifies the column properties for this section. If all the columns are of the same width, you need only to specify the number of columns (in the num attribute) and the space between columns (in the space attribute).

Usage

<cols
    equalWidth="onOffType"
    space="twipsMeasureType"
    num="decimalNumberType"
    sep="onOffType"
/>

Element Information

Element type columnsType
Namespace http://schemas.microsoft.com/office/word/2003/wordml
Schema name XML Document 2003

Elements and Attributes

Parent Elements

Element Description
sectPr Represents section properties for section that terminates at this paragraph mark.
sectPr Represents the section properties for the very last section in the document.

Child Elements

Element Description
col Represents a column in a section. If all columns are not of equal width, a col element is required for each column and the space and num attributes of the cols element should not exist.

Attributes

Attribute Type Required Description Possible Values
equalWidth onOffType optional Specifies whether all columns are of equal width.
  • on
  • off
space twipsMeasureType optional If all columns are of equal width, gets or sets the amount of space between each column.
num decimalNumberType optional If all columns are of equal width, gets or sets the number of columns.
sep onOffType optional Adds a vertical line between columns.
  • on
  • off

Definition

<xsd:element name="cols" type="columnsType" minOccurs="0" >
</xsd:element>

©2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp