共用方式為


DisplayInformation.AdvancedColorInfoChanged 事件

定義

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

// Register
event_token AdvancedColorInfoChanged(TypedEventHandler<DisplayInformation, IInspectable const&> const& handler) const;

// Revoke with event_token
void AdvancedColorInfoChanged(event_token const* cookie) const;

// Revoke with event_revoker
DisplayInformation::AdvancedColorInfoChanged_revoker AdvancedColorInfoChanged(auto_revoke_t, TypedEventHandler<DisplayInformation, IInspectable const&> const& handler) const;
public event TypedEventHandler<DisplayInformation,object> AdvancedColorInfoChanged;
function onAdvancedColorInfoChanged(eventArgs) { /* Your code */ }
displayInformation.addEventListener("advancedcolorinfochanged", onAdvancedColorInfoChanged);
displayInformation.removeEventListener("advancedcolorinfochanged", onAdvancedColorInfoChanged);
- or -
displayInformation.onadvancedcolorinfochanged = onAdvancedColorInfoChanged;
Public Custom Event AdvancedColorInfoChanged As TypedEventHandler(Of DisplayInformation, Object) 

事件類型

備註

這是事件註冊 API,將會註冊事件通知,以便每當監視器上對應至視窗的 [進階色彩] 資訊有任何變更時,您的應用程式就會收到通知。 然後,您的應用程式可以呼叫 GetAdvancedColorInfo API,以瞭解最新的功能和狀態。 您的應用程式需要追蹤哪些值已變更,並視需要回應。 事件 API 不會指出哪些值已變更。

注意

此事件會移除應用程式先前註冊的任何現有事件處理常式,以變更進階色彩資訊。

適用於