Skip to main content

ScreenOrientation Enumeration

Describes the orientation of a screen.

Definition

Namespace: Avalonia.Platform
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public enum ScreenOrientation

Members

None0No screen orientation is specified.
Landscape1Specifies that the monitor is oriented in landscape mode where the width of the screen viewing area is greater than the height.
Portrait2Specifies that the monitor rotated 90 degrees in the clockwise direction to orient the screen in portrait mode where the height of the screen viewing area is greater than the width.
LandscapeFlipped4Specifies that the monitor rotated another 90 degrees in the clockwise direction (to equal 180 degrees) to orient the screen in landscape mode where the width of the screen viewing area is greater than the height. This landscape mode is flipped 180 degrees from the Landscape mode.
PortraitFlipped8Specifies that the monitor rotated another 90 degrees in the clockwise direction (to equal 270 degrees) to orient the screen in portrait mode where the height of the screen viewing area is greater than the width. This portrait mode is flipped 180 degrees from the Portrait mode.

See Also

Reference

Avalonia.Platform Namespace