Class StringAggregateSummary
Summarizes string fields. Provides Count and MaximumLength.
Inherited Members
Namespace: Syncfusion.Grouping
Assembly: Syncfusion.Grouping.Base.dll
Syntax
public sealed class StringAggregateSummary : SummaryBase, ITreeTableSummary, ICountAggregate
Constructors
StringAggregateSummary(Int32, Int32)
Initializes a new instance of StringAggregateSummary class with the specified values.
Declaration
public StringAggregateSummary(int count, int maxLength)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | count | The Count value. |
System.Int32 | maxLength | Maximum length. |
Fields
Empty
The initial summary object for empty records or tables.
Declaration
public static readonly StringAggregateSummary Empty
Field Value
Type |
---|
StringAggregateSummary |
Properties
Count
Gets the count.
Declaration
public int Count { get; }
Property Value
Type |
---|
System.Int32 |
MaxLength
Gets the maximum length.
Declaration
public int MaxLength { get; }
Property Value
Type |
---|
System.Int32 |
Methods
Combine(StringAggregateSummary)
Combines the values of this summary with another summary and returns a new summary object.
Declaration
public StringAggregateSummary Combine(StringAggregateSummary other)
Parameters
Type | Name | Description |
---|---|---|
StringAggregateSummary | other | Another summary object (of the same type). |
Returns
Type | Description |
---|---|
StringAggregateSummary | A new summary object with combined values of both summaries. |
Combine(SummaryBase)
Combines 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)
Create the interface with page summary method.
Declaration
public static ITreeTableSummary CreatePageSummaryMethod(SummaryDescriptor sd, Record record)
Parameters
Type | Name | Description |
---|---|---|
SummaryDescriptor | sd | SummaryDescriptor. |
Record | record | Record value. |
Returns
Type | Description |
---|---|
ITreeTableSummary | An instance of the StringAggregateSummary 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 | A string holding the summary object. |