DisplayInformation.NativeOrientation | nativeOrientation property

Applies to Windows and Windows Phone

Gets the native orientation of the display monitor, which is typically the orientation where the buttons on the device match the orientation of the monitor.

Syntax


var nativeOrientation = displayInformation.nativeOrientation;

Property value

Type: DisplayOrientations

The native orientation of the display monitor.

Remarks

NativeOrientation returns only the Landscape or Portrait value. NativeOrientation never returns the LandscapeFlipped or PortraitFlipped value.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Graphics.Display
Windows::Graphics::Display [C++]

Metadata

Windows.winmd

See also

DisplayInformation

 

 

Show:
© 2014 Microsoft