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
属性

注釈

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

プロパティ

Status

の状態を取得します DisplayAreaWatcher

メソッド

Start()

DisplayAreaWatcher を開始します。

Stop()

DisplayAreaWatcher を停止します。

イベント

Added

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

EnumerationCompleted

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

Removed

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

Stopped

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

Updated

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

適用対象

こちらもご覧ください