TdxSpreadSheetIncreaseFontSize Class
An action object that implements the IncreaseFontSize end-user command in spreadsheet-based applications.
Declaration
TdxSpreadSheetIncreaseFontSize = class(
TdxSpreadSheetCustomFormatCellsAction
)
Remarks
This class does not introduce any new public members. Its overridden TdxBasicAction_Execute function call increases the current
This class does not introduce any new public members. Executing a TdxSpreadSheetIncreaseFontSize
action object increases the current font size by one position within the control’s set of predefined font size values. The IncreaseFontSize command is applicable to:
- The values displayed in all selected cells.
- The text selection within an in-place cell editor (only if the rich content formatting functionality is enabled in the Spreadsheet/Report Designer control).
UI elements linked to a TdxSpreadSheetIncreaseFontSize
action object 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
).An in-place cell editor is inactive (the active worksheet‘s IsEditing property returns
False
). This condition is applicable only if the dxSpreadSheetTextService.IsRTFSupported function returnsFalse
.
If cell selection is disallowed in the protected worksheet (i.e., its OptionsProtection.ActualAllowSelectUnlockedCells property returns False
), executing the TdxSpreadSheetIncreaseFontSize
action object has no effect.
Note
If the current font size is equal to or exceeds the largest value in the set of predefined font values, executing a TdxSpreadSheetIncreaseFontSize
action object has no effect.