Skip to main content

TdxSpreadSheetAlignVerticalCenter Class

An action object that implements the AlignVerticalCenter end-user command in Spreadsheet and Report Designer-based applications.

Declaration

TdxSpreadSheetAlignVerticalCenter = class(
    TdxSpreadSheetCustomAlignVerticalAction
)

Remarks

This class does not introduce any new public members. Its overridden Execute function call centers the content between the top and bottom borders of all cells selected in the active worksheet. As a result, the Style.AlignVert property of all affected cell objects is set to ssavCenter.

If the content is already centered between the top and bottom borders in all selected cells, the AlignVerticalCenter command has no effect.

UI elements linked to a TdxSpreadSheetAlignVerticalCenter action object are enabled only if the following conditions are met:

See Also