Skip to main content

TdxSpreadSheetContainers.Add(TdxSpreadSheetContainerClass,Untyped) Method

Creates a new floating container object within the worksheet.

Declaration

procedure Add(AClass: TdxSpreadSheetContainerClass; out AContainer); overload;

Parameters

Name Type
AClass TdxSpreadSheetContainerClass
AContainer

Remarks

This function can create any supported floating container type, including custom container implementations derived from the TdxSpreadSheetContainer class. The required container class-reference is passed as the AClass parameter. The overloaded procedure’s AContainer parameter returns a picture, shape, text box, or comment container object depending on the AClass parameter value, instead of a generic floating container object.

The newly created container is placed on the top of others, possibly overlapping them. Call the BringToFront and SendToBack procedures for the different floating containers within the same container collection in order to rearrange them properly. Comment containers however, are always displayed on top.

Note

Unlike Add, the dedicated AddCommentContainer method provides a more convenient way of creating comment containers by applying the necessary anchoring settings automatically.

See Also