FMX.Forms.TFormOrientation
Delphi
TFormOrientation = TScreenOrientation;
C++
typedef Fmx::Types::TScreenOrientation TFormOrientation;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
enum typedef |
public | FMX.Forms.pas FMX.Forms.hpp |
FMX.Forms | FMX.Forms |
Description
Represents an enumeration of FireMonkey form orientations that are available for devices that support this feature (for instance, an iPad or an iPhone).
TFormOrientation is declared as the alias for the TScreenOrientation type. The following table lists the enumeration alternatives defined in TScreenOrientation:
Name | Description |
---|---|
Portrait
|
The form is oriented in portrait mode (vertical). |
Landscape
|
The form is oriented in landscape mode (horizontal). |
InvertedPortrait
|
The form is oriented in inverted portrait mode (upside down). |
InvertedLandscape
|
The form is oriented in inverted landscape mode. |
At run time, the form can display only in the specified orientation or orientations, regardless of the position or rotation of the display device.
To specify the possible orientations of a form, select from the values shown in the Object Inspector for Orientations. You can specify more than one orientation for a form.