Show / Hide Table of Contents

Class ExcelPivotTableDataFieldCollection

Collection class for data fields in a Pivottable

Inheritance
System.Object
ExcelPivotTableFieldCollectionBase<ExcelPivotTableDataField>
ExcelPivotTableDataFieldCollection
Implements
System.Collections.Generic.IEnumerable<ExcelPivotTableDataField>
System.Collections.IEnumerable
Inherited Members
ExcelPivotTableFieldCollectionBase<ExcelPivotTableDataField>.GetEnumerator()
ExcelPivotTableFieldCollectionBase<ExcelPivotTableDataField>.IEnumerable.GetEnumerator()
ExcelPivotTableFieldCollectionBase<ExcelPivotTableDataField>.Count
ExcelPivotTableFieldCollectionBase<ExcelPivotTableDataField>.Item[Int32]
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OfficeOpenXml.Table.PivotTable
Assembly: EPPlus.dll
Syntax
public class ExcelPivotTableDataFieldCollection : ExcelPivotTableFieldCollectionBase<ExcelPivotTableDataField>, IEnumerable<ExcelPivotTableDataField>, IEnumerable

Properties

Item[String]

Returns the data field with the name supplied.

Declaration
public ExcelPivotTableDataField this[string name] { get; }
Parameters
Type Name Description
System.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

System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
In This Article
Back to top Generated by DocFX