言語

DisplayAreaWatcher クラス

定義

表示領域を列挙し、表示領域のコレクションまたは個々の DisplayArea の構成が変更されたときにイベントを発生させます。

public ref class DisplayAreaWatcher sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class DisplayAreaWatcher final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class DisplayAreaWatcher
Public NotInheritable Class DisplayAreaWatcher
継承
Object Platform::Object IInspectable DisplayAreaWatcher
属性

注釈

DisplayAreaWatcherを作成するには、DisplayArea.CreateWatcher を呼び出します。 UI スレッドで DisplayAreaWatcher を作成する必要があります。

プロパティ

名前 説明
Status

DisplayAreaWatcherの状態を取得します。

メソッド

名前 説明
Start()

DisplayAreaWatcherを開始します。

Stop()

DisplayAreaWatcherを停止します。

イベント

名前 説明
Added

DisplayArea.FindAllによって返される表示領域のコレクションにDisplayAreaが追加されたときに発生します。

EnumerationCompleted

監視イベントの最初のパスが処理され、表示領域のコレクションが完了したときに発生します。

Removed

DisplayArea.FindAllによって返されたコレクションからDisplayAreaが削除されたときに発生します。

Stopped

DisplayAreaWatcherが停止したときに発生します。

Updated

DisplayAreaの構成が変更されたときに発生します。

適用対象

こちらもご覧ください