Skip to main content

TdxSpreadSheetSetPortraitPageOrientation Class

An action object that implements the SetPortraitPageOrientation end-user command in spreadsheet-based applications.

Declaration

TdxSpreadSheetSetPortraitPageOrientation = class(
    TdxSpreadSheetCustomPrintingAction
)

Remarks

The SetPortraitPageOrientation and SetLandscapePageOrientation end-user commands are excluded from automatic UI generation scheme and exist only to ensure backward compatibility with previous versions of DevExpress controls. Use the PageOrientationGallery command instead.

This class does not introduce any new public members. Its overridden Execute function call sets the active worksheet‘s OptionsPrint.Page.Orientation property to oppoPortrait.

UI elements linked to a TdxSpradSheetSetPortraitPageOrientation action object are enabled only if an in-place cell editor is inactive (that is, the active worksheet’s IsEditing property returns False).

To localize the caption of UI elements linked to a TdxSpreadSheetSetPortraitPageOrientation action object, use the sdxSpreadSheetActionSetPortraitPageOrientationCaption resource string. The action object provides no hint by default.

See Also