EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

SimpleOrientation enumeration

Indicates the orientation of the device.

Syntax


public enum class SimpleOrientation

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 (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

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

 

 

Mostrar:
© 2015 Microsoft