Jaa


SimpleOrientation Enum

Definition

Indicates the orientation of the device.

public enum class SimpleOrientation
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class SimpleOrientation
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum SimpleOrientation
var value = Windows.Devices.Sensors.SimpleOrientation.notRotated
Public Enum SimpleOrientation
Inheritance
SimpleOrientation
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
NotRotated 0

The device is not rotated.

Rotated90DegreesCounterclockwise 1

The device is rotated 90-degrees counter-clockwise.

Rotated180DegreesCounterclockwise 2

The device is rotated 180-degrees counter-clockwise.

Rotated270DegreesCounterclockwise 3

The device is rotated 270-degrees counter-clockwise.

Faceup 4

The device is face-up and the display is visible to the user.

Facedown 5

The device is face-down and the display is hidden from the user.

Remarks

The Faceup and Facedown values are supported for tablet 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".

Applies to