Compartilhar via


DisplayProperties.CurrentOrientation Propriedade

Definição

Observação

DisplayProperties pode ser alterado ou indisponível para versões após Windows 8.1. Em vez disso, use DisplayInformation.

Obtém a orientação atual de um monitor retangular.

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 da propriedade

A orientação atual de um monitor retangular.

Atributos

Aplica-se a