ColumnFields Class

Column Fields.When the object is serialized out as xml, its qualified name is x:colFields.

Inheritance Hierarchy


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


<ChildElementInfoAttribute(GetType(Field))> _
Public Class ColumnFields _
    Inherits OpenXmlCompositeElement
Dim instance As ColumnFields
public class ColumnFields : OpenXmlCompositeElement


The following table lists the possible child types:

  • Field <x:field>

[ISO/IEC 29500-1 1st Edition] colFields (Column Fields)

Represents the collection of fields that are on the column axis of the PivotTable.


In the image above, the blue field is a column field.

[Example: In the following SpreadsheetML example, "Year", "Quarter" and "Month" are on the column axis of the PivotTable, in that order.

<colFields count="3">
<field x="14"/>
<field x="15"/>
<field x="16"/>

end example]

Parent Elements

pivotTableDefinition (§

Child Elements


field (Field)




count (Repeated Items Count)

Specifies the number of items in this collection.

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

[Note: The W3C XML Schema definition of this element’s content model (CT_ColFields) 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


ColumnFields Members

DocumentFormat.OpenXml.Spreadsheet Namespace