TdxSpreadSheetClearPrintArea Class
An action object that implements the ClearPrintArea end-user command in Spreadsheet and Report Designer-based applications.
Declaration
TdxSpreadSheetClearPrintArea = class(
TdxSpreadSheetCustomPrintingAction
)
Remarks
This class does not introduce any new public members. Executing this action object discards the custom print area defined for the active worksheet, that is, internally calls its OptionsPrint.Source.Area.Reset procedure.
UI elements linked to a TdxSpreadSheetClearPrintArea action object are enabled only if the following conditions are met:
An in-place editor is inactive (the active worksheet’s IsEditing property returns False);
The active worksheet has a custom print area (that is, the worksheet’s OptionsPrint.Source.Area.Assigned property is True).
To localize the caption and hint displayed by UI elements linked to a TdxSpreadSheetClearPrintArea action object, use the sdxSpreadSheetActionClearPrintAreaCaption and sdxSpreadSheetActionClearPrintAreaHint resource strings, respectively.