[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IRange.Subtotal

Subtotal Method

Subtotal(int, ConsolidationFunction, IEnumerable<int>, bool, bool, SummaryRow)

为范围创建小计。

Declaration
void Subtotal(int groupBy, ConsolidationFunction subtotalFunction, IEnumerable<int> totalList, bool replace = true, bool pageBreaks = false, SummaryRow summaryRowLocation = SummaryRow.Below)
Parameters
Type Name Description
int groupBy

作为基于1的整数偏移量的分组字段。

ConsolidationFunction subtotalFunction

小计函数。

IEnumerable<int> totalList

基于1的字段偏移量数组,指示要添加小计的字段。

bool replace

如果替换现有小计则为True。默认值为True。

bool pageBreaks

如果要在每组后添加分页符则为True。默认值为False。

SummaryRow summaryRowLocation

相对于小计放置汇总数据的位置。