DisplayArea Class

Definition

Represents the area of a display in which a view is able to be shown to a user.

public ref class DisplayArea sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DisplayArea final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DisplayArea
Public NotInheritable Class DisplayArea
Inheritance
Object Platform::Object IInspectable DisplayArea
Attributes

Properties

DisplayId

Gets the identifier for the display associated with the DisplayArea.

IsPrimary

Gets a value that indicates whether the DisplayArea is located on the primary monitor.

OuterBounds

Gets a rectangle that describes the bounds of the DisplayArea, where the X,Y offset is within the screen coordinate space.

Primary

Gets the primary DisplayArea for the desktop.

WorkArea

Gets the rectangle of the work area of the DisplayArea, where the X,Y offset is within the display area's bounds.

Methods

CreateWatcher()

Creates a DisplayAreaWatcher that notifies when a DisplayArea or the collection of display areas has changed.

FindAll()

Retrieves a list of all display areas currently present in the system.

GetFromDisplayId(DisplayId)

Gets the DisplayArea for the specified DisplayId.

GetFromPoint(PointInt32, DisplayAreaFallback)

Gets the DisplayArea where the specified Point is present.

GetFromRect(RectInt32, DisplayAreaFallback)

Gets the DisplayArea where the specified rectangle is present.

GetFromWindowId(WindowId, DisplayAreaFallback)

Gets the DisplayArea for the specified WindowId.

Applies to