Back to Devexpress

PivotCalculatedItemCollection Interface

officefileapi-devexpress-dot-spreadsheet-7f8a5983.md

latest2.3 KB
Original Source

PivotCalculatedItemCollection Interface

Represents a collection of calculated items in a PivotTable field.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
public interface PivotCalculatedItemCollection :
    ISimpleCollection<PivotItem>,
    IEnumerable<PivotItem>,
    IEnumerable,
    ICollection
vb
Public Interface PivotCalculatedItemCollection
    Inherits ISimpleCollection(Of PivotItem),
             IEnumerable(Of PivotItem),
             IEnumerable,
             ICollection

The following members return PivotCalculatedItemCollection objects:

Remarks

Use the PivotField.CalculatedItems property to get access to the PivotCalculatedItemCollection collection. An individual calculated item is represented by the PivotItem object, which can be accessed by its index in the PivotCalculatedItemCollection collection.

To add a calculated item to the PivotTable field, use the PivotCalculatedItemCollection.Add method. To remove a calculated item from the PivotTable field, use the PivotCalculatedItemCollection.Remove or PivotCalculatedItemCollection.RemoveAt method.

See Also

PivotCalculatedItemCollection Members

WinForms Spreadsheet Control Examples

DevExpress.Spreadsheet Namespace