DisplayProperties, classe

DisplayProperties Class

Remarque  DisplayProperties peut être modifié ou non disponible pour les versions ultérieures à Windows 8.1. Utilisez plutôt DisplayInformation.

Fournit les différentes propriétés liées à l'affichage physique. Pour la plupart de ces propriétés, la classe fournit des événements pour permettre aux clients de contrôler les modifications effectuées sur les propriétés.

Syntaxe


var displayProperties = Windows.Graphics.Display.DisplayProperties;

Attributs

[Deprecated()]
[MarshalingBehavior(Agile)]
[Version(0x06020000)]

Membres

DisplayPropertiesClasse possède ces types de membres :

Événements

DisplayPropertiesClasse possède ces événements.

ÉvénementDescription
ColorProfileChanged DisplayProperties may be altered or unavailable for releases after Windows 8.1. Instead, use DisplayInformation. Occurs when the physical display's color profile changes.
DisplayContentsInvalidated DisplayProperties may be altered or unavailable for releases after Windows 8.1. Instead, use DisplayInformation. Occurs when the display requires redrawing.
LogicalDpiChanged DisplayProperties may be altered or unavailable for releases after Windows 8.1. Instead, use DisplayInformation. Occurs when the LogicalDpi property changes because the pixels per inch (PPI) of the display changes.
OrientationChanged DisplayProperties may be altered or unavailable for releases after Windows 8.1. Instead, use DisplayInformation. Occurs when either the CurrentOrientation or NativeOrientation property changes because of a mode change or a monitor change.
StereoEnabledChanged DisplayProperties may be altered or unavailable for releases after Windows 8.1. Instead, use DisplayInformation. Occurs when the StereoEnabled property changes because support for stereoscopic 3D changes.

 

Méthodes

The DisplayProperties Classe a les méthodes suivantes. Avec C#, Visual Basic et C++, elle hérite également des méthodes de Object Classe.

MéthodeDescription
GetColorProfileAsync DisplayProperties may be altered or unavailable for releases after Windows 8.1. Instead, use DisplayInformation. Asynchronously gets the default International Color Consortium (ICC) color profile that is associated with the physical display.

 

Propriétés

Le DisplayPropertiesClasse a les propriétés suivantes.

PropriétéType d'accèsDescription

AutoRotationPreferences

Lecture/écritureDisplayProperties may be altered or unavailable for releases after Windows 8.1. Instead, use DisplayInformation. Gets and sets the preferred orientation of the app.

CurrentOrientation

En lecture seuleDisplayProperties may be altered or unavailable for releases after Windows 8.1. Instead, use DisplayInformation. Gets the current orientation of a rectangular monitor.

LogicalDpi

En lecture seuleDisplayProperties may be altered or unavailable for releases after Windows 8.1. Instead, use DisplayInformation. Gets the pixels per logical inch of the current environment.

NativeOrientation

En lecture seuleDisplayProperties may be altered or unavailable for releases after Windows 8.1. Instead, use DisplayInformation. Gets the native orientation of the display monitor, which is typically the orientation where the buttons on the device match the orientation of the monitor.

ResolutionScale

En lecture seuleDisplayProperties may be altered or unavailable for releases after Windows 8.1. Instead, use DisplayInformation. Gets the scale factor of the immersive environment.

StereoEnabled

En lecture seuleDisplayProperties may be altered or unavailable for releases after Windows 8.1. Instead, use DisplayInformation. Gets a value that indicates whether the device supports stereoscopic 3D.

 

Conditions requises

Client minimal pris en charge

Windows 8 [Applications Windows Store uniquement]

Serveur minimal pris en charge

Windows Server 2012 [Applications Windows Store uniquement]

Téléphone minimal pris en charge

Windows Phone 8

Espace de noms

Windows.Graphics.Display
Windows::Graphics::Display [C++]

Métadonnées

Windows.winmd

 

 

Afficher:
© 2017 Microsoft