[Table of Contents] [docx version]

SpreadsheetML Reference Material - Table of Contents

textField (Text Import Field Settings)

This element specifies field settings for text import.

Parent Elements

textFields3.13.11)

 

Attributes

Description

position (Position)

The character position the field starts at for fixed-length fields. The index is 0-based. If this attribute does not exist, position=0 is assumed. Subsequent textField elements or carriage returns in the text stream serve to denote endpoints for text fields.

 

The possible values for this attribute are defined by the XML Schema unsignedInt datatype.

type (Field Type)

Specifies the field Type. When text is imported into cells in the worksheet, the data in the cells are converted to the type defined here.

 

Types can be specified by the user, or determined algorithmically via heuristics and text analysis.

 

The possible values for this attribute are defined by the ST_ExternalConnectionType simple type (§3.18.28).

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

<complexType name="CT_TextField">

   <attribute name="type" use="optional" type="ST_ExternalConnectionType" default="general"/>

   <attribute name="position" use="optional" type="xsd:unsignedInt" default="0"/>

</complexType>