com.spire.xls.core.spreadsheet.pivottables
Class PivotDataFields
java.lang.Object
com.spire.ms.System.Collections.CollectionBase
com.spire.xls.core.spreadsheet.collections.CollectionExtended
com.spire.xls.core.spreadsheet.pivottables.PivotDataFields
- All Implemented Interfaces:
- com.spire.ms.System.Collections.ICollection, com.spire.ms.System.Collections.IEnumerable, IPivotDataFields, java.lang.Iterable
public class PivotDataFields
- extends CollectionExtended
- implements IPivotDataFields
PivotDataFields
public PivotDataFields(java.lang.Object parent)
get
public PivotDataField get(int index)
- Gets single entry from the collection. Read-only.
- Specified by:
get
in interface IPivotDataFields
- Parameters:
index
- Item's index to get from the collection.
- Returns:
- Single entry from the collection.
get
public IPivotDataField get(java.lang.String name)
- Returns single entry from the collection.
- Specified by:
get
in interface IPivotDataFields
- Parameters:
name
- Name of the item to get.
- Returns:
- Single entry from the collection.
getParent
public XlsPivotTable getParent()
- Overrides:
getParent
in class CollectionExtended
add
public IPivotDataField add(IPivotField iField,
java.lang.String name,
SubtotalTypes subtotal)
- Adds new data field to the collection.
- Specified by:
add
in interface IPivotDataFields
- Parameters:
iField
- Parent field to use.name
- Name for the new data fieldsubtotal
- Subtotal function for the new data field.
- Returns:
- Newly added data field.
remove
public boolean remove(PivotDataField item)
removeAt
public void removeAt(int index)
- Overrides:
removeAt
in class com.spire.ms.System.Collections.CollectionBase
clear
public void clear()
- Overrides:
clear
in class com.spire.ms.System.Collections.CollectionBase