Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxSpreadSheetContainers.Add(TdxSpreadSheetContainerClass,Untyped) Method

Creates a new floating container object within the worksheet.

#Declaration

Delphi
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