DisplayInformation.AutoRotationPreferences DisplayInformation.AutoRotationPreferences DisplayInformation.AutoRotationPreferences DisplayInformation.AutoRotationPreferences DisplayInformation.AutoRotationPreferences Property

Definition

Gets and sets the preferred orientation of the app.

public : static DisplayOrientations AutoRotationPreferences { get; set; }
static DisplayOrientations AutoRotationPreferences();

static void AutoRotationPreferences(DisplayOrientations autorotationpreferences);
public static DisplayOrientations AutoRotationPreferences { get; set; }
Public Shared ReadWrite Property AutoRotationPreferences As DisplayOrientations
var displayOrientations = Windows.Graphics.Display.DisplayInformation.autoRotationPreferences;
displayInformation.autoRotationPreferences = displayOrientations;

Property Value

The orientation of a rectangular monitor.

Remarks

This property is static.