DisplayProperties.CurrentOrientation Propiedad

Definición

Nota

DisplayProperties puede modificarse o no estar disponible para las versiones después de Windows 8.1. En su lugar, use DisplayInformation.

Obtiene la orientación actual de un monitor rectangular.

public:
 static property DisplayOrientations CurrentOrientation { DisplayOrientations get(); };
/// [get: Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
static DisplayOrientations CurrentOrientation();
/// [get: Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
static DisplayOrientations CurrentOrientation();
public static DisplayOrientations CurrentOrientation { [Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))] get; }
public static DisplayOrientations CurrentOrientation { [Windows.Foundation.Metadata.Deprecated("DisplayProperties may be altered or unavailable for releases after Windows Phone 8.1. Instead, use DisplayInformation.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")] get; }
var displayOrientations = DisplayProperties.currentOrientation;
Public Shared ReadOnly Property CurrentOrientation As DisplayOrientations

Valor de propiedad

Orientación actual de un monitor rectangular.

Atributos

Se aplica a