语言

PivotFields 接口

定义

数据透视表报表中所有 PivotField 对象的集合。

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
属性
实现

注解

使用对象的方法PivotTable返回 PivotFields(Object)PivotFields 集合。

使用 数据透视字段 (index) ,其中 index 为字段名称或索引号,返回单个 数据透视字段 对象。

在某些情况下,使用返回数据透视表字段子集的属性之一可能会更容易。 可以使用以下访问器方法:

属性

名称 说明
Application

返回表示 Application Microsoft Excel 应用程序的对象。 只读。

Count

返回集合中对象的数目。 只读 Integer。

Creator

返回一个 32 位整数,该整数指示在其中创建了此对象的应用程序。 如果该对象是在 Microsoft Excel 中创建的,则此属性返回字符串 XCEL,它等同于十六进制的数字 5843454C。 只读 XlCreator。

Parent

返回指定对象的父对象。 只读。

方法

名称 说明
GetEnumerator()

数据透视表报表中所有 PivotField 对象的集合。

Item(Object)

从集合中返回一个对象。

适用于