Skip to main content

TcxDataSummaryItems.Add(TObject,TcxSummaryPosition,TcxSummaryKind,string) Method

Adds a new element to the collection of summaries.

Declaration

function Add(AItemLink: TObject; APosition: TcxSummaryPosition; AKind: TcxSummaryKind; const AFormat: string = ''): TcxDataSummaryItem; overload;

Parameters

Name Type
AItemLink TObject
APosition TcxSummaryPosition
AKind TcxSummaryKind
AFormat string

Returns

Type
TcxDataSummaryItem

Remarks

The first overloaded variant of this method creates a new instance of the TcxDataSummaryItem class and adds it to the collection.

The second variant of the Add method allows you to initialize the ItemLink, Position, Kind, and Format properties of the created summary object via the AItemLink, APosition, AKind, and AFormat parameters, respectively.

Use the Items property to access the collection of summaries.

See Also