TdxSpreadSheetCustomFormatCellsAction Class
The base class for all action classes that implement cell format customization commands.
Declaration
TdxSpreadSheetCustomFormatCellsAction = class(
TdxSpreadSheetCustomEditCellsAction
)
Remarks
This class overrides the action object availability conditions implemented by its ancestors. The formatting commands are enabled only if the following conditions are met:
Spreadsheet document editing is allowed (i.e., the control’s OptionsBehavior.Editing property is set to True);
Cell formatting is allowed in the active worksheet (i.e., its OptionsProtection.ActualAllowFormatCells property returns True);
The in-place cell editor is inactive (the active worksheet‘s IsEditing property returns False).
If cell selection is disallowed in the protected worksheet (that is, its OptionsProtection.ActualAllowSelectUnlockedCells property returns False), the cell formatting action objects are available but have no effect if executed.
TdxSpreadSheetCustomFormatCellsAction is the ancestor of the action classes that implement Spreadsheet and Report Designer control commands that:
Modify the cell content horizontal and vertical alignment (TdxSpreadSheetAlignHorizontalCenter, TdxSpreadSheetAlignHorizontalLeft, TdxSpreadSheetAlignHorizontalRight, TdxSpreadSheetAlignVerticalBottom, TdxSpreadSheetAlignVerticalCenter, and TdxSpreadSheetAlignVerticalTop);
Change the content positioning within the current cell selection (TdxSpreadSheetTextIndentDecrease, TdxSpreadSheetTextIndentIncrease, and TdxSpreadSheetTextWrap);
Change the border style within the current cell selection (TdxSpreadSheetBordersAll, TdxSpreadSheetBordersBottom, TdxSpreadSheetBordersBottomDouble, TdxSpreadSheetBordersBottomThick, TdxSpreadSheetBordersLeft, TdxSpreadSheetBordersMore, TdxSpreadSheetBordersNone, TdxSpreadSheetBordersOutside, TdxSpreadSheetBordersOutsideThick, TdxSpreadSheetBordersRight, TdxSpreadSheetBordersTop, TdxSpreadSheetBordersTopAndBottom, TdxSpreadSheetBordersTopAndBottomDouble, and TdxSpreadSheetBordersTopAndBottomThick);
Change the background color within the current cell selection (TdxSpreadSheetChangeFillColor);
Modify the selection’s font typeface, size, and color (TdxSpreadSheetChangeFontName, TdxSpreadSheetChangeFontSize, and TdxSpreadSheetChangeFontColor);
Apply/remove the Bold, Italic, Strikeout, and Underline attributes to/from the current font (TdxSpreadSheetToggleFontBold, TdxSpreadSheetToggleFontItalic, TdxSpreadSheetToggleFontStrikeout, and TdxSpreadSheetToggleFontUnderline).
You do not need to create instances of the TdxSpreadSheetCustomFormatCellsAction class. Use its descendants instead.