TcxDataSummaryItems.Add(TObject,TcxSummaryPosition,TcxSummaryKind,string) Method
Adds a new summary item with specified settings and adds the item to the collection.
#Declaration
function Add(AItemLink: TObject; APosition: TcxSummaryPosition; AKind: TcxSummaryKind; const AFormat: string = ''): TcxDataSummaryItem; overload;
#Parameters
Name | Type | Description |
---|---|---|
AItem |
TObject | The target data item. Pass a Tcx This parameter value initializes the Item |
APosition | Tcx |
The target position of the created summary item. This parameter value initializes the Position property of the created summary item. |
AKind | Tcx |
The required summary calculation algorithm. This parameter value initializes the Kind property of the created summary item. |
AFormat | string | Optional. The formatting pattern for the created summary item’s display text. This parameter value initializes the Format property of the created summary item. |
#Returns
Type | Description |
---|---|
Tcx |
The created summary item. Different summary item collection types create corresponding items. You may need to cast the returned object to the corresponding terminal [Tcx Tip Call the returned object’s Class |
#Remarks
Call the Add
function to create a summary item with the required settings. You can use the Items property to access all summary items in the collection.