Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SimpleOrientation enumeration

Applies to Windows and Windows Phone

Indicates the orientation of the device.

Syntax


var value = Windows.Devices.Sensors.SimpleOrientation.notRotated;

Attributes

[Version(0x06020000)]

Members

The SimpleOrientation enumeration has these members.

MemberValueDescription
NotRotated | notRotated0

The device is not rotated.

Rotated90DegreesCounterclockwise | rotated90DegreesCounterclockwise1

The device is rotated 90-degrees counter-clockwise.

Rotated180DegreesCounterclockwise | rotated180DegreesCounterclockwise2

The device is rotated 180-degrees counter-clockwise.

Rotated270DegreesCounterclockwise | rotated270DegreesCounterclockwise3

The device is rotated 270-degrees counter-clockwise.

Faceup | faceup4

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

Facedown | facedown5

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".

Requirements

Minimum supported client

Windows 8

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Devices.Sensors
Windows::Devices::Sensors [C++]

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft