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

Computes the average.

Definition

Namespace:Telerik.Pivot.Core

Assembly:Telerik.WinControls.PivotGrid.dll

Syntax:

C#
[DataContract]
public sealed class AverageAggregateFunction : AggregateFunction, INotifyPropertyChanged, ISupportInitialize, IServiceProvider, IEditable, INamed

Inheritance: objectCloneableSettingsNodeAggregateFunctionAverageAggregateFunction

Implements: IEditableINamedINotifyPropertyChangedIServiceProviderISupportInitialize

Inherited Members SettingsNode.BeginEdit()SettingsNode.BeginInit()SettingsNode.EndInit()SettingsNode.GetService(Type)SettingsNode.ParentSettingsNode.SettingsChangedSettingsNode.ServicesChangedSettingsNode.PropertyChangedCloneable.Clone()...

Constructors

C#
public AverageAggregateFunction()

Properties

Gets the display-friendly name.

C#
public override string DisplayName { get; }

Overrides: AggregateFunction.DisplayName

Methods

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

Creates an AggregateValue supported by that AggregateFunction.

C#
protected override AggregateValue CreateAggregate(Type dataType)
Parameters:dataTypeTypeReturns:

AggregateValue

An AggregateValue.

Overrides: AggregateFunction.CreateAggregate(Type)

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.

C#
public override bool Equals(object obj)
Parameters:objobjectReturns:

bool

Overrides: object.Equals(object)

C#
public override int GetHashCode()
Returns:

int

Overrides: object.GetHashCode()

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

C#
public override string GetStringFormat(Type dataType, string format)
Parameters:dataTypeType

The type of the data items.

formatstring

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

Returns:

string

A string.

Overrides: AggregateFunction.GetStringFormat(Type, string)

C#
public override string ToString()
Returns:

string

Overrides: object.ToString()