Skip to main content

TdxSpreadSheetAlignHorizontalLeft Class

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

Declaration

TdxSpreadSheetAlignHorizontalLeft = class(
    TdxSpreadSheetCustomAlignHorizontalAction
)

Remarks

This class does not introduce any new public members. Its overridden Execute function call aligns the content to left borders in all cells selected in the active worksheet. As a result, the Style.AlignHorz property of all affected cell objects is set to ssahLeft.

If the content is already aligned to the left borders in all selected cells, the AlignHorizontalLeft command restores the horizontal alignment of the cells according to their content type (that is, aligns text strings and numeric values to the left and right borders, respectively).

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

See Also