Property TotalsFunction
- Namespace
- DocWright.Spreadsheet
- Assembly
- DocWright.Spreadsheet.dll
TotalsFunction
Gets or sets what the totals row computes for the column. Setting one writes Excel's SUBTOTAL into the
column's totals cell (SUBTOTAL(109,Table1[Amount]) for a sum), as Excel's Total Row does.
public XlsxTotalsFunction TotalsFunction { get; set; }
Property Value
Exceptions
- ArgumentOutOfRangeException
The value set is not one Excel's Total Row offers (Custom is read, not set).
- InvalidOperationException
The table has no totals row, or is no longer on the sheet.