Bewerken

Delen via


PivotFields Interface

Definition

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

public interface class PivotFields : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("00020875-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(2)]
public interface PivotFields : System.Collections.IEnumerable
Public Interface PivotFields
Implements IEnumerable
Attributes
Implements

Remarks

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:

Properties

Application

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

Count

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

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

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

Methods

GetEnumerator()
Item(Object)

Returns a single object from a collection.

Applies to