Class
AggregateFunction

Definition

Namespace:Telerik.Pivot.Core.Aggregates

Assembly:Telerik.Pivot.Core.dll

Syntax:

cs-api-definition
[TypeConverter(typeof(AggregateFunctionConverter))]
[DataContract]
public abstract class AggregateFunction : SettingsNode, INotifyPropertyChanged, ISupportInitialize, IServiceProvider, IEditable, INamed

Inheritance: objectCloneableSettingsNodeAggregateFunction

Derived Classes: AverageAggregateFunctionCountAggregateFunctionNumericFormatAggregateFunctionProductAggregateFunctionStatisticalFormatAggregateFunction

Implements: IEditableINamedINotifyPropertyChangedIServiceProviderISupportInitialize

Inherited Members SettingsNode.NotifyServicesChanged()SettingsNode.NotifySettingsChanged(SettingsChangedEventArgs)SettingsNode.OnSettingsChanged(SettingsChangedEventArgs)SettingsNode.BeginEdit()SettingsNode.BeginInit()SettingsNode.EndInit()SettingsNode.GetService(Type)SettingsNode.OnPropertyChanged(string)SettingsNode.RemoveSettingsChild(SettingsNode)SettingsNode.AddSettingsChild(SettingsNode)SettingsNode.GetServiceOverride(Type)SettingsNode.OnEnteredEditScope()SettingsNode.OnExitingEditScope()SettingsNode.ParentSettingsNode.SettingsChangedSettingsNode.ServicesChangedSettingsNode.PropertyChangedCloneable.Clone()Cloneable.CreateInstanceCore()Cloneable.CloneCore(Cloneable)

Constructors

AggregateFunction()

Declaration

cs-api-definition
protected AggregateFunction()

Properties

DisplayName

Gets the display-friendly name.

Declaration

cs-api-definition
public abstract string DisplayName { get; }

Property Value

string

Implements INamed.DisplayName

Methods

CreateAggregate(IAggregateContext)

Creates an AggregateValue supported by that AggregateFunction.

Declaration

cs-api-definition
protected virtual AggregateValue CreateAggregate(IAggregateContext context)

Parameters

context

IAggregateContext

AggregateContext containing information about AggregateValue usage.

Returns

AggregateValue

An AggregateValue.

CreateAggregate(Type)

Creates an AggregateValue supported by that AggregateFunction.

Declaration

cs-api-definition
protected virtual AggregateValue CreateAggregate(Type dataType)

Parameters

dataType

Type

Returns

AggregateValue

An AggregateValue.

GetStringFormat(Type, string)

Gets a string format suitable to format the value of the AggregateValues produced by that AggregateFunction.

Declaration

cs-api-definition
public virtual string GetStringFormat(Type dataType, string format)

Parameters

dataType

Type

The type of the data items.

format

string

A string format selected by other means. You may keep or discard it.

Returns

string

A string.