次の方法で共有


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) 

イベントの種類

Windows の要件

要件 説明
デバイス ファミリ
Windows 10, version 1803 (10.0.17134.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v6.0 で導入)

注釈

これは、UWP アプリのイベント通知を登録するイベント登録 API です。これにより、CoreWindow に対応するモニターの [詳細な色] 情報に変更が加えられるたびに通知を受け取ることができます。 その後、アプリは GetAdvancedColorInfo API を呼び出して、最新の機能と状態を把握できます。 アプリでは、変更された値を追跡し、必要に応じて応答する必要があります。イベント API では、変更された値は示されません。 このイベントにより、アプリが以前に詳細な色情報の変更に登録した既存の通知が削除されることに注意してください。

適用対象