New to Telerik UI for WinFormsStart a free 30-day trial

Holds a value presentation of an aggregate function accumulated during pivot grouping.

Definition

Namespace:Telerik.Pivot.Core.Aggregates

Assembly:Telerik.WinControls.PivotGrid.dll

Syntax:

C#
public abstract class AggregateValue : Cloneable

Inheritance: objectCloneableAggregateValue

Derived Classes: DoubleAggregateValue

Inherited Members Cloneable.Clone()Cloneable.CreateInstanceCore()

Constructors

C#
protected AggregateValue()

Fields

Gets an AggregateValue representing error.

C#
public static readonly AggregateValue ErrorAggregateValue

Methods

Add the value to the results in the current AggregateValue instance.

C#
protected abstract void AccumulateOverride(object value)
Parameters:valueobject

The value to accumulate.

Makes the instance a clone (deep copy) of the specified Cloneable.

C#
protected override void CloneCore(Cloneable source)
Parameters:sourceCloneable

The object to clone.

Overrides: Cloneable.CloneCore(Cloneable)

Remarks:

Notes to Inheritors If you derive from Cloneable, you may need to override this method to copy all properties. It is essential that all implementations call the base implementation of this method (if you don't call base you should manually copy all needed properties including base properties).

Gets a presentation friendly value of the results in the current AggregateValue.

C#
public object GetValue()
Returns:

object

Returns an object containing a formatted value or error object.

Gets a presentation friendly value of the results in the current AggregateValue instance to be returned in GetValue(). If an error occurred during calculations the GetValue() will not call GetValueOverride() but return the error instead.

C#
protected abstract object GetValueOverride()
Returns:

object

A result object.

Merge the results of an AggregateValue with the results in the current AggregateValue instance.

C#
protected abstract void MergeOverride(AggregateValue childAggregate)
Parameters:childAggregateAggregateValue

The AggregateValue to merge.

C#
public override string ToString()
Returns:

string

Overrides: object.ToString()

Extension Methods