Class Int32AggregateSummary
Summarizes integer fields. Provides Count, Minimum, Maximum, Sum, and Average.
Inherited Members
Namespace: Syncfusion.Grouping
Assembly: Syncfusion.Grouping.Base.dll
Syntax
public sealed class Int32AggregateSummary : SummaryBase, ITreeTableSummary, ICountAggregate, IAverageAggregate
Constructors
Int32AggregateSummary(Int32, Int32, Int32, Int32)
Initializes a new summary object for Int32AggregateSummarywith the specified values.
Declaration
public Int32AggregateSummary(int count, int minimum, int maximum, int sum)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | count | The Count value. |
System.Int32 | minimum | Minimum value. |
System.Int32 | maximum | Maximum value. |
System.Int32 | sum | The Sum value. |
Fields
Empty
The initial summary object for empty records or tables.
Declaration
public static readonly Int32AggregateSummary Empty
Field Value
Type |
---|
Int32AggregateSummary |
Properties
Average
Gets the average.
Declaration
public double Average { get; }
Property Value
Type |
---|
System.Double |
Count
Gets the count.
Declaration
public int Count { get; }
Property Value
Type |
---|
System.Int32 |
Maximum
Gets the maximum.
Declaration
public int Maximum { get; }
Property Value
Type |
---|
System.Int32 |
Minimum
Gets the minimum.
Declaration
public int Minimum { get; }
Property Value
Type |
---|
System.Int32 |
Sum
Gets the sum.
Declaration
public int Sum { get; }
Property Value
Type |
---|
System.Int32 |
Methods
Combine(Int32AggregateSummary)
Combines the values of this summary with another summary and returns a new summary object.
Declaration
public Int32AggregateSummary Combine(Int32AggregateSummary other)
Parameters
Type | Name | Description |
---|---|---|
Int32AggregateSummary | other | Another summary object (of the same type). |
Returns
Type | Description |
---|---|
Int32AggregateSummary | A new summary object with combined values of both summaries. |
Combine(SummaryBase)
Overridden to combine the values of this summary with another summary and returns a new summary object.
Declaration
public override SummaryBase Combine(SummaryBase other)
Parameters
Type | Name | Description |
---|---|---|
SummaryBase | other | Another summary object. |
Returns
Type | Description |
---|---|
SummaryBase | A new summary object with combined values of both summaries. |
Overrides
CreatePageSummaryMethod(SummaryDescriptor, Record)
Used to interface with page summary.
Declaration
public static ITreeTableSummary CreatePageSummaryMethod(SummaryDescriptor sd, Record record)
Parameters
Type | Name | Description |
---|---|---|
SummaryDescriptor | sd | SummaryDescriptor. |
Record | record | Record values. |
Returns
Type | Description |
---|---|
ITreeTableSummary | An instance of the Int32AggregateSummary class. |
CreateSummaryMethod(SummaryDescriptor, Record)
Creates a summary object for the specified SummaryDescriptor and Record.
Declaration
public static ITreeTableSummary CreateSummaryMethod(SummaryDescriptor sd, Record record)
Parameters
Type | Name | Description |
---|---|---|
SummaryDescriptor | sd | The summary descriptor. |
Record | record | The record with data. |
Returns
Type | Description |
---|---|
ITreeTableSummary | A new summary object. |
ToString()
Returns string representation of the summary object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String representation of the current object. |