DisplayProperties.CurrentOrientation Properti

Definisi

Catatan

DisplayProperties mungkin diubah atau tidak tersedia untuk rilis setelah Windows 8.1. Sebagai gantinya, gunakan DisplayInformation.

Mendapatkan orientasi monitor persegi panjang saat ini.

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

Nilai Properti

Orientasi monitor persegi panjang saat ini.

Atribut

Berlaku untuk