GraphicsDeviceManager.SupportedOrientations Property (Microsoft.Xna.Framework)
Indicates the desired allowable display orientations when the device is rotated.
- C#
- VB
- F#
public DisplayOrientation SupportedOrientations { get; set; }
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Property Value
Type: Microsoft.Xna.Framework.DisplayOrientation
This property only applies to mobile platforms with automatic display rotation.
When called at startup this will automatically apply the supported orientations during initialization. If
set after startup you must call ApplyChanges() for the supported orientations to be changed.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web