SimpleOrientation 列舉

定義

指出裝置的方向。

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
繼承
SimpleOrientation
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

欄位

Facedown 5

裝置正向向下顯示,且顯示器會從使用者隱藏。

Faceup 4

裝置正向上顯示,而且使用者可以看到顯示器。

NotRotated 0

裝置不會旋轉。

Rotated180DegreesCounterclockwise 2

裝置會逆時針旋轉 180 度。

Rotated270DegreesCounterclockwise 3

裝置會順時針旋轉 270 度。

Rotated90DegreesCounterclockwise 1

裝置會逆時針旋轉 90 度。

備註

平板電腦裝置支援 FaceupFacedown 值。 您可以使用它們來支援電源管理:只要方向為 臉部,您的應用程式就會繼續執行;但是,一旦方向為 Facedown,您的應用程式就可以暫停或進入「睡眠模式」。

適用於