Compartir a través de


PivotCell.DataField Property

Returns a PivotField object that corresponds to the selected data field.

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

Syntax

'Declaration
ReadOnly Property DataField As PivotField
    Get
'Usage
Dim instance As PivotCell
Dim value As PivotField

value = instance.DataField
PivotField DataField { get; }

Property Value

Type: Microsoft.Office.Interop.Excel.PivotField

Remarks

This property will return an error if the PivotCell object is not one of the allowed types: XlPivotCellTypeValue, XlPivotCellTypeDataField, XlPivotCellTypeSubtotal, or XlPivotCellTypeGrandTotal.

See Also

Reference

PivotCell Interface

PivotCell Members

Microsoft.Office.Interop.Excel Namespace