Class
SumFunction

Represents a function that returns the sum of all items from a set of items.

Definition

Namespace:Telerik.Windows.Data

Assembly:Telerik.Windows.Data.dll

Syntax:

cs-api-definition
public class SumFunction : EnumerableSelectorAggregateFunction, INotifyPropertyChanged

Inheritance: objectAggregateFunctionEnumerableAggregateFunctionBaseEnumerableSelectorAggregateFunctionSumFunction

Implements: INotifyPropertyChanged

Inherited Members EnumerableSelectorAggregateFunction.GenerateFunctionName()EnumerableSelectorAggregateFunction.CreateAggregateExpression(Expression)EnumerableSelectorAggregateFunction.GetAggregationValue(object)EnumerableSelectorAggregateFunction.SourceFieldEnumerableSelectorAggregateFunction.SourceFieldTypeEnumerableAggregateFunctionBase.ExtensionMethodsTypeAggregateFunction.OnPropertyChanged(string)AggregateFunction.CaptionAggregateFunction.FunctionNameAggregateFunction.ResultFormatStringAggregateFunction.PropertyChanged

Constructors

SumFunction()

Initializes a new instance of the SumFunction class.

Declaration

cs-api-definition
public SumFunction()

Properties

AggregateMethodName

Gets the name of the aggregate method on the ExtensionMethodsType that will be used for aggregation.

Declaration

cs-api-definition
protected override string AggregateMethodName { get; }

Property Value

string

The name of the aggregate method that will be used.

Overrides EnumerableAggregateFunctionBase.AggregateMethodName

Remarks

Gets the the Sum method name.

Methods

Merge(object, AggregateResultMergeAction, AggregateResult, QueryableCollectionViewGroup)

Merges the specified item into the aggregate result according to the specified action.

Declaration

cs-api-definition
public override object Merge(object item, AggregateResultMergeAction mergeAction, AggregateResult originalAggregateResult, QueryableCollectionViewGroup group)

Parameters

item

object

The item.

mergeAction

AggregateResultMergeAction

The action.

originalAggregateResult

AggregateResult

The original aggregate result.

group

QueryableCollectionViewGroup

The group which the item is being added to or removed from.

Returns

object

The new value of the aggregate result.

Overrides AggregateFunction.Merge(object, AggregateResultMergeAction, AggregateResult, QueryableCollectionViewGroup)