DisplayInformation.AdvancedColorInfoChanged 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
變更進階色彩資訊時引發。
// 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)
事件類型
TypedEventHandler<DisplayInformation,IInspectable>
備註
這是事件註冊 API,將會註冊事件通知,以便每當監視器上對應至視窗的 [進階色彩] 資訊有任何變更時,您的應用程式就會收到通知。 然後,您的應用程式可以呼叫 GetAdvancedColorInfo API,以瞭解最新的功能和狀態。 您的應用程式需要追蹤哪些值已變更,並視需要回應。 事件 API 不會指出哪些值已變更。
注意
此事件會移除應用程式先前註冊的任何現有事件處理常式,以變更進階色彩資訊。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應