Skip to main content
Row

PivotDataFieldCollection Members

Represents a collection of fields located in the data area of a PivotTable report.

Properties

Name Description
Count Gets the number of elements contained in the ICollection. Inherited from ICollection.
IsSynchronized Gets a value indicating whether access to the ICollection is synchronized (thread safe). Inherited from ICollection.
Item[String] Provides access to an individual data field in the collection by its name.
SyncRoot Gets an object that can be used to synchronize access to the ICollection. Inherited from ICollection.

Methods

Name Description
Add(PivotField, String, PivotDataConsolidationFunction) Adds a field to the data area of a PivotTable report.
Add(PivotField, String) Adds a field to the data area of a PivotTable report.
Add(PivotField) Adds a field to the data area of a PivotTable report.
Clear() Removes all data fields from the collection.
Contains(PivotDataField) Determines whether the collection contains the specified data field.
CopyTo(Array, Int32) Copies the elements of the ICollection to an Array, starting at a particular Array index. Inherited from ICollection.
GetEnumerator() Returns an enumerator that iterates through the collection. Inherited from IEnumerable<T>.
IndexOf(PivotDataField) Returns the index of the specified data field in the collection.
Insert(Int32, PivotField, String, PivotDataConsolidationFunction) Inserts a field into the data area of a PivotTable report at the specified position.
Insert(Int32, PivotField, String) Inserts a field into the data area of a PivotTable report at the specified position.
Insert(Int32, PivotField) Inserts a field into the data area of a PivotTable report at the specified position.
Remove(PivotDataField) Removes the specified data field from the collection.
RemoveAt(Int32) Removes the data field at the specified index from the collection.
See Also