Back to Devexpress

PivotDataFieldCollection.Clear() Method

officefileapi-devexpress-dot-spreadsheet-dot-pivotdatafieldcollection.md

latest1.6 KB
Original Source

PivotDataFieldCollection.Clear() Method

Removes all data fields from the collection.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
void Clear()
vb
Sub Clear

Remarks

To remove an individual data field from the collection, use the PivotDataFieldCollection.Remove or PivotDataFieldCollection.RemoveAt methods.

To add a data field to the PivotTable report, use the PivotDataFieldCollection.Add method overloads.

See Also

Remove(PivotDataField)

RemoveAt(Int32)

PivotDataFieldCollection Interface

PivotDataFieldCollection Members

DevExpress.Spreadsheet Namespace