Cells.Subtotal

Subtotal(CellArea, int, ConsolidationFunction, int[])

Creates subtotals for the range.

public void Subtotal(CellArea ca, int groupBy, ConsolidationFunction function, int[] totalList)
ParameterTypeDescription
caCellAreaThe range
groupByInt32The field to group by, as a zero-based integer offset
functionConsolidationFunctionThe subtotal function.
totalListInt32[]An array of zero-based field offsets, indicating the fields to which the subtotals are added.

See Also


Subtotal(CellArea, int, ConsolidationFunction, int[], bool, bool, bool)

Creates subtotals for the range.

public void Subtotal(CellArea ca, int groupBy, ConsolidationFunction function, int[] totalList, 
    bool replace, bool pageBreaks, bool summaryBelowData)
ParameterTypeDescription
caCellAreaThe range
groupByInt32The field to group by, as a zero-based integer offset
functionConsolidationFunctionThe subtotal function.
totalListInt32[]An array of zero-based field offsets, indicating the fields to which the subtotals are added.
replaceBooleanIndicates whether replace the current subtotals
pageBreaksBooleanIndicates whether add page break between groups
summaryBelowDataBooleanIndicates whether add summary below data.

See Also