Class GridMaxLengthSummary
Summarizes string fields and lets you determine the maximum length of a string in the column.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid.Grouping
Assembly: Syncfusion.Grid.Grouping.Windows.dll
Syntax
public sealed class GridMaxLengthSummary : SummaryBase, ITreeTableSummary
Constructors
GridMaxLengthSummary(Int32)
Initializes a new instance of the GridMaxLengthSummary
Declaration
public GridMaxLengthSummary(int maxLength)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | maxLength | Maximum length. |
Fields
Empty
The initial summary object for empty records or tables.
Declaration
public static readonly GridMaxLengthSummary Empty
Field Value
| Type |
|---|
| GridMaxLengthSummary |
Properties
MaxLength
Gets The maximum length value.
Declaration
public int MaxLength { get; }
Property Value
| Type |
|---|
| System.Int32 |
Methods
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
Combine(GridMaxLengthSummary)
Combines the values of this summary with another summary and returns a new summary object.
Declaration
public GridMaxLengthSummary Combine(GridMaxLengthSummary other)
Parameters
| Type | Name | Description |
|---|---|---|
| GridMaxLengthSummary | other | Another summary object (of the same type). |
Returns
| Type | Description |
|---|---|
| GridMaxLengthSummary | A new summary object with combined values of both summaries. |
CreateSummaryFromElementMethod(SummaryDescriptor, Element)
Creates a summary object for the specified SummaryDescriptor and Record.
Declaration
public static ITreeTableSummary CreateSummaryFromElementMethod(SummaryDescriptor sd, Element element)
Parameters
| Type | Name | Description |
|---|---|---|
| SummaryDescriptor | sd | The summary descriptor. |
| Element | element | The element with data. |
Returns
| Type | Description |
|---|---|
| ITreeTableSummary | A new summary object. |
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | A string that represents the current object. |