Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
TextField class
Collapse the table of content
Expand the table of content

TextField class

Text Import Field Settings. When the object is serialized out as xml, its qualified name is x:textField.

Namespace:  DocumentFormat.OpenXml.Spreadsheet
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public class TextField : OpenXmlLeafElement

[ISO/IEC 29500-1 1st Edition]

textField (Text Import Field Settings)

This element specifies field settings for text import.

Parent Elements

textFields (§18.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 W3C 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 field 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 (§18.18.27).

[Note: The W3C XML Schema definition of this element’s content model (CT_TextField) is located in §A.2. end note]

© ISO/IEC29500: 2008.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2015 Microsoft