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

TdxSpreadSheetAlignHorizontalRight Class

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

#Declaration

Delphi
TdxSpreadSheetAlignHorizontalRight = class(
    TdxSpreadSheetCustomAlignHorizontalAction
)

#Remarks

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

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

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

See Also