Class SummaryAggregateBase
Class that contains the methods and properties for all the aggregation calculations. It serves as the base for all the aggregators.
Inheritance
System.Object
SummaryAggregateBase
Namespace: Syncfusion.Data
Assembly: Syncfusion.Data.UWP.dll
Syntax
public class SummaryAggregateBase : Object, ISummaryExpressionAggregate, ISummaryAggregate, ISummaryAdjustable, ISummaryAggregateForGroup
Constructors
SummaryAggregateBase()
Declaration
public SummaryAggregateBase()
Methods
AdjustSummaryCalculation(Object, Object, Object, NotifyCollectionChangedAction, String, Int32)
Adjusts the summary calculation based on the given values.
Declaration
public virtual object AdjustSummaryCalculation(object currentValue, object oldValue, object newValue, NotifyCollectionChangedAction recordaction, string propertyName, int recordCount)
Parameters
Type | Name | Description |
---|---|---|
System.Object | currentValue | The current summary value. |
System.Object | oldValue | The old summary value. |
System.Object | newValue | The new summary value. |
System.Collections.Specialized.NotifyCollectionChangedAction | recordaction | The collection changed action. |
System.String | propertyName | The name of the property that is changed. |
System.Int32 | recordCount | The count of the records in the group. |
Returns
Type | Description |
---|---|
System.Object | Returns the modified value of the summary calculation based on the given values. |
CalculateAggregateExpressionFunc()
Calculates the aggregate expression func for the group.
Declaration
public virtual Action<IEnumerable, string, Expression<Func<string, object, object>>, PropertyInfo> CalculateAggregateExpressionFunc()
Returns
Type | Description |
---|---|
System.Action<System.Collections.IEnumerable, System.String, System.Linq.Expressions.Expression<System.Func<System.String, System.Object, System.Object>>, System.Reflection.PropertyInfo> | The aggregate expression func for the group. |
CalculateAggregateFunc()
Calculates the custom aggregate for the specified summary column.
Declaration
public virtual Action<IEnumerable, string, PropertyInfo> CalculateAggregateFunc()
Returns
Type | Description |
---|---|
System.Action<System.Collections.IEnumerable, System.String, System.Reflection.PropertyInfo> | The custom aggregate for the specified summary column. |
CalculateAggregateFuncForGroup()
Calculates the aggregate func for the group.
Declaration
public virtual Action<IEnumerable, string, PropertyInfo> CalculateAggregateFuncForGroup()
Returns
Type | Description |
---|---|
System.Action<System.Collections.IEnumerable, System.String, System.Reflection.PropertyInfo> | The aggregate func for the group. |