Show / Hide Table of Contents

Class ExcelPivotTableDataFieldCollection

Collection class for data fields in a Pivottable

Inheritance
object
ExcelPivotTableFieldCollectionBase<ExcelPivotTableDataField>
ExcelPivotTableDataFieldCollection
Implements
IEnumerable<ExcelPivotTableDataField>
IEnumerable
Inherited Members
ExcelPivotTableFieldCollectionBase<ExcelPivotTableDataField>.GetEnumerator()
ExcelPivotTableFieldCollectionBase<ExcelPivotTableDataField>.Count
ExcelPivotTableFieldCollectionBase<ExcelPivotTableDataField>.this[int]
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: OfficeOpenXml.Table.PivotTable
Assembly: EPPlus.dll
Syntax
public class ExcelPivotTableDataFieldCollection : ExcelPivotTableFieldCollectionBase<ExcelPivotTableDataField>, IEnumerable<ExcelPivotTableDataField>, IEnumerable

Properties

this[string]

Returns the data field with the name supplied.

Declaration
public ExcelPivotTableDataField this[string name] { get; }
Parameters
Type Name Description
string name

The name of the field or the cache field

Property Value
Type Description
ExcelPivotTableDataField

THe data field

Methods

Add(ExcelPivotTableField)

Add a new datafield

Declaration
public ExcelPivotTableDataField Add(ExcelPivotTableField field)
Parameters
Type Name Description
ExcelPivotTableField field

The field

Returns
Type Description
ExcelPivotTableDataField

The new datafield

Remove(ExcelPivotTableDataField)

Remove a datafield

Declaration
public void Remove(ExcelPivotTableDataField dataField)
Parameters
Type Name Description
ExcelPivotTableDataField dataField

The data field to remove

Implements

IEnumerable<T>
IEnumerable
In this article
Back to top Generated by DocFX