DisplayArea 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示能够向用户显示视图的显示区域。
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
- 继承
- 属性
属性
| 名称 | 说明 |
|---|---|
| DisplayId |
获取与 .. 关联的 |
| IsPrimary |
获取一个值,该值指示 |
| OuterBounds |
获取一个矩形,该矩形描述屏幕坐标空间中 X,Y 偏移量所在的边界 |
| Primary |
|
| WorkArea |
获取工作区域的 |
方法
| 名称 | 说明 |
|---|---|
| CreateWatcher() |
创建一个 |
| FindAll() |
检索系统中当前存在的所有显示区域的列表。 |
| GetFromDisplayId(DisplayId) |
获取 |
| GetFromPoint(PointInt32, DisplayAreaFallback) |
获取 |
| GetFromRect(RectInt32, DisplayAreaFallback) |
获取 |
| GetFromWindowId(WindowId, DisplayAreaFallback) |
获取 |
| GetMetricsFromWindowId(WindowId) |
表示能够向用户显示视图的显示区域。 |