GraphicsDeviceManager.SupportedOrientations Property (Microsoft.Xna.Framework)

Indicates the desired allowable display orientations when the device is rotated.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public DisplayOrientation SupportedOrientations { get; set; }

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

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