Share via


DisplayInformation.CurrentOrientation Property

Definition

Gets the current orientation of a rectangular monitor.

public:
 property DisplayOrientations CurrentOrientation { DisplayOrientations get(); };
DisplayOrientations CurrentOrientation();
public DisplayOrientations CurrentOrientation { get; }
var displayOrientations = displayInformation.currentOrientation;
Public ReadOnly Property CurrentOrientation As DisplayOrientations

Property Value

The current orientation of a rectangular monitor.

Remarks

The value of the DisplayInformation.CurrentOrientation property corresponds to the orientation of the display or monitor and not necessarily to the orientation of your app. To determine the orientation of your app for layout purposes, use the ApplicationView.Value property.

Applies to