Share via


DisplayInformation 類別

定義

監視和控制項最上層視窗或顯示監視器的顯示相關資訊。 類別提供事件,可讓用戶端監視會影響檢視所在 () 顯示變更,以及可能會影響應用程式視窗的顯示變更。

public ref class DisplayInformation sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65538)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DisplayInformation final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65538)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DisplayInformation : System.IDisposable
Public NotInheritable Class DisplayInformation
Implements IDisposable
繼承
Object Platform::Object IInspectable DisplayInformation
屬性
實作

屬性

DispatcherQueue

取得與 DisplayInformation 物件相關聯的發送器佇列。

IsStereoEnabled

取得值,指出裝置是否支援立體立體 3D。

方法

Close()

關閉 DisplayInformation 物件,並釋放系統資源。

CreateForDisplayId(DisplayId)

為指定的DisplayId建立新的DisplayInformation物件。

注意

您必須從已執行 Microsoft.UI.Dispatching.DispatcherQueue 的執行緒呼叫這個方法。

CreateForWindowId(WindowId)

為指定的WindowId建立新的DisplayInformation物件。

注意

您必須從已執行 Microsoft.UI.Dispatching.DispatcherQueue 的執行緒呼叫這個方法。

Dispose()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

GetAdvancedColorInfo()

擷取進階色彩資訊。

GetColorProfile()

擷取與實體顯示器相關聯的預設國際色彩聯盟 (ICC) 色彩設定檔。

GetColorProfileAsync()

以非同步方式擷取與實體顯示器相關聯的預設國際色彩聯盟 (ICC) 色彩設定檔。

事件

AdvancedColorInfoChanged

變更進階色彩資訊時引發。

ColorProfileChanged

發生于實體顯示器的色彩設定檔變更時。

Destroyed

DisplayInformation 物件終結時引發。

IsStereoEnabledChanged

發生于 IsStereoEnabled 屬性變更時,因為支援立體立體 3D 的變更。

適用於