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

Represents AggregateValue with double value.

Definition

Namespace:Telerik.Pivot.Core.Aggregates

Assembly:Telerik.WinControls.PivotGrid.dll

Syntax:

C#
public sealed class DoubleAggregateValue : AggregateValue, IConvertibleAggregateValue<double>

Inheritance: objectCloneableAggregateValueDoubleAggregateValue

Implements: IConvertibleAggregateValue<double>

Inherited Members AggregateValue.ErrorAggregateValueAggregateValue.GetValue()AggregateValue.ToString()Cloneable.Clone()

Constructors

Initializes a new instance of the DoubleAggregateValue class.

C#
public DoubleAggregateValue(double value)
Parameters:valuedouble

The default value.

Methods

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

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

The value to accumulate.

Overrides: AggregateValue.AccumulateOverride(object)

When implemented in a derived class, creates a new instance of the Cloneable derived class.

C#
protected override Cloneable CreateInstanceCore()
Returns:

Cloneable

New instance for cloning.

Overrides: Cloneable.CreateInstanceCore()

Remarks:

Do not call this method directly (except when calling base in an implementation). This method is called internally by the Clone() method whenever a new instance of the Cloneable is created. Notes to Inheritors. Every Cloneable derived class must implement this method. A typical implementation is to simply call the default constructor and return the result.

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 override object GetValueOverride()
Returns:

object

A result object.

Overrides: AggregateValue.GetValueOverride()

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

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

The AggregateValue to merge.

Overrides: AggregateValue.MergeOverride(AggregateValue)