PivotTable.PageFields Property
Returns an object that represents either a single PivotTable field (a PivotField object) or a collection of all the fields (a PivotFields object) that are currently showing as page fields. Read-only.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
ReadOnly Property PageFields ( _
Index As Object _
) As Object
Get
'Usage
Dim instance As PivotTable
Dim Index As Object
Dim value As Object
value = instance.PageFields(Index)
Object this[
Object Index
] { get; }
Parameters
Index
Type: System.ObjectOptional Object. The name or number of the field to be returned (can be an array to specify more than one field).
Property Value
Type: System.Object
Remarks
A hierarchy can contain only one page field.
For a PivotTable report based on a PivotTable cache, the collection of PivotTable fields that’s returned reflects what’s currently in the cache.