Version

TotalFormula Property

Gets or sets the formula to use in the total cell of the column.
Syntax
'Declaration
 
Public Property TotalFormula As Formula
public Formula TotalFormula {get; set;}
Exceptions
ExceptionDescription
System.ArgumentException The value is already applied to something else, such as a cell or table column.
System.InvalidOperationExceptionFrom the setter if column was removed from the table.
Remarks

The total formula can be set regardless of whether or not the totals row is visible. If the totals row is hidden, the formula will not be applied anywhere. When the totals row is visible, it will be applied to the total cell of the column.

Setting the TotalFormula to a non-null value will clear the TotalLabel, and vice versa.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also