信息
您所需的主题如下所示。但此主题未包含在此库中。
此主题尚未评级 - 评价此主题

DisplayProperties Class

注意  DisplayProperties 在 Windows 8.1 之后的版本中可能会更改或不可用。请改用 DisplayInformation

提供与实际显示相关的各种属性。 对于其中的大多数属性,类会提供事件以允许客户端监视属性中的变更。

语法


var displayProperties = Windows.Graphics.Display.DisplayProperties;

特性

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

成员

DisplayProperties类 具有这些类型的成员:

事件

DisplayProperties类 具有这些事件。

事件说明
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.

 

方法

The DisplayProperties 类 具有这些方法。 对于 C#、Visual Basic 和 C++,它还继承方法于Object 类.

方法说明
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.

 

属性

DisplayProperties类 具有这些属性。

属性访问类型说明

AutoRotationPreferences

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

CurrentOrientation

只读DisplayProperties may be altered or unavailable for releases after Windows 8.1. Instead, use DisplayInformation. Gets the current orientation of a rectangular monitor.

LogicalDpi

只读DisplayProperties 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

只读DisplayProperties 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

只读DisplayProperties may be altered or unavailable for releases after Windows 8.1. Instead, use DisplayInformation. Gets the scale factor of the immersive environment.

StereoEnabled

只读DisplayProperties 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.

 

要求

最低支持客户端

Windows 8 [仅 Windows 应用商店应用程序]

最低支持服务器

Windows Server 2012 [仅 Windows 应用商店应用程序]

最低支持电话

Windows Phone 8

命名空间

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

元数据

Windows.winmd

 

 

本文是否对您有所帮助?
(1500 个剩余字符)
感谢您的反馈
显示:
© 2014 Microsoft. 版权所有。