Compartilhar via


PivotField.TotalLevels Property

Returns the total number of fields in the current field group. If the field isn’t grouped, or if the data source is OLAP-based, TotalLevels returns the value 1. Read-only Integer.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
ReadOnly Property TotalLevels As Object
    Get
'Usage
Dim instance As PivotField
Dim value As Object

value = instance.TotalLevels
Object TotalLevels { get; }

Property Value

Type: System.Object

Remarks

All fields in a set of grouped fields have the same TotalLevels value.

See Also

Reference

PivotField Interface

PivotField Members

Microsoft.Office.Interop.Excel Namespace