HasTotals Property


Indicates if the field displays totals.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 17.0.0.0 (17.0.484.0)
Since: 2013

Syntax

C#
[ObsoleteAttribute("This property is obsolete in Revit 2017. Use DisplayType instead.")]
public bool HasTotals { get; set; }
Visual Basic
<ObsoleteAttribute("This property is obsolete in Revit 2017. Use DisplayType instead.")> _
Public Property HasTotals As Boolean
	Get
	Set
Visual C++
[ObsoleteAttribute(L"This property is obsolete in Revit 2017. Use DisplayType instead.")]
public:
property bool HasTotals {
	bool get ();
	void set (bool value);
}

Field Value

True if the field displays totals, false otherwise.

Remarks

To display totals below a series of schedule rows, a footer row must be enabled where the totals will be displayed. It can either be a grand total row at the end of the schedule or a footer row for one of the schedule's grouped fields.

In a non-itemized schedule, totals are also displayed in regular rows when multiple elements appear on the same row.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions InvalidOperationException When setting this property: This ScheduleField cannot be totaled.

See Also