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

Represents a result returned by an aggregate function.

Definition

Namespace:Telerik.Windows.Data

Assembly:Telerik.Windows.Data.dll

Syntax:

C#
public class AggregateResult : INotifyPropertyChanged

Inheritance: objectAggregateResult

Implements: INotifyPropertyChanged

Constructors

Initializes a new instance of the AggregateResult class.

C#
public AggregateResult(AggregateFunction function)
Parameters:functionAggregateFunction

AggregateFunction that generated the result.

Exceptions:

ArgumentNullException

function is null.

Initializes a new instance of the AggregateResult class.

C#
public AggregateResult(object value, AggregateFunction function)
Parameters:valueobject

The value of the result.

functionAggregateFunction

AggregateFunction that generated the result.

Initializes a new instance of the AggregateResult class.

C#
public AggregateResult(object value, int itemCount, AggregateFunction aggregateFunction)
Parameters:valueobject

The value of the result.

itemCountint

The number of arguments used for the calculation of the result.

aggregateFunctionAggregateFunction

Function that generated the result.

Exceptions:

ArgumentNullException

aggregateFunction is null.

Properties

Gets or sets the text which serves as a caption for the result in a user interface..

C#
public string Caption { get; }
Property Value:

The text which serves as a caption for the result in a user interface.

Gets the formatted value of the result.

C#
public object FormattedValue { get; set; }
Property Value:

The formatted value of the result.

Gets the name of the function.

C#
public string FunctionName { get; }
Property Value:

The name of the function.

Gets or sets the number of arguments used for the calculation of the result.

C#
public int ItemCount { get; }
Property Value:

The number of arguments used for the calculation of the result.

Gets or sets the value of the result.

C#
public object Value { get; }
Property Value:

The value of the result.

Methods

Called when a property has changed.

C#
protected void OnPropertyChanged(string propertyName)
Parameters:propertyNamestring

Name of the property.

Returns a string that represents the current object.

C#
public override string ToString()
Returns:

string

A string that represents the current object.

Overrides: object.ToString()

Events

Occurs when a property value changes.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged