[]
        
(Showing Draft Content)

C1.C1Preview.DataBinding.Aggregate

Aggregate Class

Represents an aggregate value calculated on a data-bound element of a C1PrintDocument over a certain scope.

Inheritance
Aggregate
Implements
Namespace: C1.C1Preview.DataBinding
Assembly: C1.PrintDocument.4.8.dll
Syntax
[C1ClassSerialization(true)]
public class Aggregate : NamedCollectionItem, ICloneable

Constructors

Name Description
Aggregate(string)

Initializes a new instance of the Aggregate class, assigning the name of the aggregate.

Aggregate(string, string, C1DataBinding, RunningEnum, AggregateFuncEnum)

Initializes a new instance of the Aggregate class, assigning the name, expression, data binding, scope and function of the aggregate.

Properties

Name Description
DataBinding

Gets or sets the data binding providing data over which the current aggregate is calculated.

Expression

Gets the Expression object used to calculate the value of the current aggregate.

ExpressionText

Gets or sets the text of the Expression object used to calculate the value of the current aggregate.

Func

Gets or sets the function (min, max, average and so on) calculated by the current aggregate.

IgnoreNullValues

Gets or sets a value indicating whether null values should be ignored when the current aggregate is calculated.

Owner

Gets the AggregateCollection containing the current aggregate.

Running

Gets or sets a RunningEnum value determining the scope of the current aggregate: whether it is calculated over all records, or separately for each group.

Value

Gets the value of the current aggregate, calculating it if it has not been calculated yet (the calculated value is cached).

Methods

Name Description
AssignFrom(NamedCollectionItem)

Assigns (copies) properties from another Aggregate to the current object.

SetName(string)

Sets the name of the current Aggregate.