SimpleOrientation Enumeration

Indicates the orientation of the device.

Syntax

public enum class SimpleOrientation  

Remarks

The Faceup and Facedown values are supported for slate devices.

You can use them to support power management: As long as the orientation is Faceup, your application will continue to run; but, once the orientation is Facedown, your application can pause or enter “sleep mode”.

Members

Member Value Description
Facedown The device is face-down and the display is hidden from the user.
Faceup The device is face-up and the display is visible to the user.
NotRotated The device is not rotated. This corresponds to portrait-up.
Rotated180DegreesCounterclockwise The device is rotated 180-degrees counter-clockwise. This corresponds to portrait-down.
Rotated270DegreesCounterclockwise The device is rotated 270-degrees counter-clockwise. This corresponds to landscape-right.
Rotated90DegreesCounterclockwise The device is rotated 90-degrees counter-clockwise. This corresponds to landscape-left.

Requirements

Namespace: Windows.Devices.Sensors

Metadata: windows.winmd

See also

Reference

Windows.Devices.Sensors Namespace