Partager via


TextField Class

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

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Spreadsheet.TextField

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

Syntax

'Declaration
Public Class TextField _
    Inherits OpenXmlLeafElement
'Usage
Dim instance As TextField
public class TextField : OpenXmlLeafElement

Remarks

[ISO/IEC 29500-1 1st Edition]

18.13.10 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.

Thread Safety

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

See Also

Reference

TextField Members

DocumentFormat.OpenXml.Spreadsheet Namespace