DisplayProperties.CurrentOrientation DisplayProperties.CurrentOrientation DisplayProperties.CurrentOrientation DisplayProperties.CurrentOrientation DisplayProperties.CurrentOrientation Property

Definition

Note

DisplayProperties may be altered or unavailable for releases after Windows 8.1. Instead, use DisplayInformation.

Gets the current orientation of a rectangular monitor.

public : static DisplayOrientations CurrentOrientation { get; }
static DisplayOrientations CurrentOrientation();
public static DisplayOrientations CurrentOrientation { get; }
Public Shared ReadOnly Property CurrentOrientation As DisplayOrientations
var displayOrientations = Windows.Graphics.Display.DisplayProperties.currentOrientation;

Property Value

The current orientation of a rectangular monitor.