PivotFields PivotFields PivotFields Interface


A collection of all the PivotField objects in a PivotTable report.

public interface class PivotFields : System::Collections::IEnumerable
public interface PivotFields : System.Collections.IEnumerable
Public Interface PivotFields
Implements IEnumerable


Use the PivotFields(Object) method of the PivotTable object to return the PivotFields collection.

Use PivotFields(index), where index is the field name or index number, to return a single PivotField object.

In some cases, it may be easier to use one of the properties that returns a subset of the PivotTable fields. The following accessor methods are available:


Application Application Application

Returns an Application object that represents the Microsoft Excel application. Read-only.

Count Count Count

Returns the number of objects in the collection. Read-only Integer.

Creator Creator Creator

Returns a 32-bit integer that indicates the application in which this object was created. If the object was created in Microsoft Excel, this property returns the string XCEL, which is equivalent to the hexadecimal number 5843454C. Read-only XlCreator.

Parent Parent Parent

Returns the parent object for the specified object. Read-only.


GetEnumerator() GetEnumerator() GetEnumerator()
Item(Object) Item(Object) Item(Object)

Returns a single object from a collection.

Applies to