Table of Contents

Property HasTotalsRow

Namespace
DocWright.Spreadsheet
Assembly
DocWright.Spreadsheet.dll

HasTotalsRow

Gets or sets whether the table has a totals row (Excel's Total Row). Turning it on takes the row under the table, writing Total in the first column and, in the last, a sum of numbers or a count of anything else, as Excel does; turning it off clears that row. Excel also moves the cells under the table down (or up) in its columns; that is not done here, so either is refused while a cell under the table in its columns holds something.

public bool HasTotalsRow { get; set; }

Property Value

bool

Exceptions

InvalidOperationException

A cell under the table in its columns holds something, the table reaches the last row, or the table is no longer on the sheet.