Version

SummaryCalculator Class Members

The following tables list the members exposed by SummaryCalculator.

Public Properties
 NameDescription
Public PropertyDataSourceGets the data source against which summaries are calculated.  
Public PropertyDisplayNameGets the display name of the calculator to be displayed in the UI.  
Public PropertyIsSummaryDirtyDetermines whether the summary is dirty and requires recalculation.  
Public PropertyOperandThe type of summary this is.  
Public PropertyPropertyNameGets the name of the property associated with the summary calculation.  
Public PropertyPropertyTypeGets the data type associated with the property name.  
Public Methods
 NameDescription
Public MethodAggregateProcesses individual items to produce a summary result.  
Public MethodBeginCalculationStarts the summary calculation.  
Public MethodEndCalculationEnds the summary calculation and returns the result.  
Public MethodItemAddedNotifies when an item is added to the data source so the summary result can be updated.  
Public MethodItemRemovedNotifies when an item is removed from the data source so the summary result can be updated.  
Protected Methods
 NameDescription
Protected MethodGetExpectedTypeFromDoubleConverts the double value into the expected type the summary expects.  
Protected MethodGetItemAsDoubleGets the property value from an item and casts it to a double.  
Protected MethodGetValueAsDoubleGets a value as a double if possible.  
See Also