DisplayOrientation Enumeration (Microsoft.Xna.Framework)

Defines the orientation of the display.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.362)
  • C#
  • VB
  • F#
[FlagsAttribute]
public enum DisplayOrientation

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The DisplayOrientation type exposes the following members.

  Platforms Name Description
Default The default orientation. 
LandscapeLeft The display is rotated counterclockwise into a landscape orientation. Width is greater than height. 
LandscapeRight The display is rotated clockwise into a landscape orientation. Width is greater than height. 
Portrait The display is rotated as portrait, where height is greater than width. 
PortraitDown The display is rotated as inverted portrait, where height is greater than width. 
Unknown Unknown display orientation. 
Top
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web