Back to Devexpress

PivotTableCollection.RemoveAt(Int32) Method

officefileapi-devexpress-dot-spreadsheet-dot-pivottablecollection-dot-removeat-x28-system-dot-int32-x29.md

latest2.1 KB
Original Source

PivotTableCollection.RemoveAt(Int32) Method

Removes the pivot table at the specified index from the collection.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
void RemoveAt(
    int index
)
vb
Sub RemoveAt(
    index As Integer
)

Parameters

NameTypeDescription
indexInt32

A zero-based integer specifying the index of the pivot table to be removed. It should be non-negative and less than the number of elements in the collection.

|

Remarks

Note that calling the RemoveAt method also disposes an element removed from the collection.

To remove the specified PivotTable object from the collection, use the PivotTableCollection.Remove method. To remove all pivot table from the collection at once, use the PivotTableCollection.Clear method.

To add a new pivot table to the collection, use the PivotTableCollection.Add method.

See Also

Remove(PivotTable)

Clear()

PivotTableCollection Interface

PivotTableCollection Members

DevExpress.Spreadsheet Namespace