Back to Devexpress

PivotFieldReferenceCollection.Clear() Method

officefileapi-devexpress-dot-spreadsheet-dot-pivotfieldreferencecollection.md

latest1.8 KB
Original Source

PivotFieldReferenceCollection.Clear() Method

Removes all row or column 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

Use the Clear method to remove all row fields from the PivotTable.RowFields collection, or all column fields from the PivotTable.ColumnFields collection.

To remove an individual row/column field from the collection of row/column fields, use the PivotFieldReferenceCollection.Remove or PivotFieldReferenceCollection.RemoveAt method.

See Also

Remove(PivotFieldReference)

RemoveAt(Int32)

PivotFieldReferenceCollection Interface

PivotFieldReferenceCollection Members

DevExpress.Spreadsheet Namespace