Class
AggregateValue

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

Definition

Namespace:Telerik.Pivot.Core.Aggregates

Assembly:Telerik.Pivot.Core.dll

Syntax:

cs-api-definition
public abstract class AggregateValue : Cloneable

Inheritance: objectCloneableAggregateValue

Derived Classes: DoubleAggregateValue

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

Constructors

AggregateValue()

Declaration

cs-api-definition
protected AggregateValue()

Fields

ErrorAggregateValue

Gets an AggregateValue representing error.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes", Justification = "Error is immutable.")]
public static readonly AggregateValue ErrorAggregateValue

Field Value

AggregateValue

Methods

AccumulateOverride(object)

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

Declaration

cs-api-definition
protected abstract void AccumulateOverride(object value)

Parameters

value

object

The value to accumulate.

CloneCore(Cloneable)

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

Declaration

cs-api-definition
protected override void CloneCore(Cloneable source)

Parameters

source

Cloneable

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).

GetValue()

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

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Design choice.")]
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Justification = "Design choice.")]
public object GetValue()

Returns

object

Returns an object containing a formatted value or error object.

GetValueOverride()

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.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Justification = "Design choice.")]
protected abstract object GetValueOverride()

Returns

object

A result object.

MergeOverride(AggregateValue)

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

Declaration

cs-api-definition
protected abstract void MergeOverride(AggregateValue childAggregate)

Parameters

childAggregate

AggregateValue

The AggregateValue to merge.

ToString()

Declaration

cs-api-definition
public override string ToString()

Returns

string

Overrides object.ToString()

Extension Methods