MapContextRequestedEventArgs 类

定义

MapContextRequested 事件提供事件数据。

public ref class MapContextRequestedEventArgs sealed
/// [Windows.Foundation.Metadata.Activatable(262144, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MapContextRequestedEventArgs final
[Windows.Foundation.Metadata.Activatable(262144, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MapContextRequestedEventArgs
Public NotInheritable Class MapContextRequestedEventArgs
继承
Object Platform::Object IInspectable MapContextRequestedEventArgs
属性

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)

构造函数

MapContextRequestedEventArgs()

初始化 MapContextRequestedEventArgs 类的新实例。

属性

Location

获取上下文输入手势地图上的地理位置,例如右键单击。

MapElements

获取 MapElement 对象的集合,该集合位于 由 Location 属性指定的地图上的点处。

Position

获取定义上下文输入手势地图上的点的 x 坐标和 y 坐标值,例如右键单击。

适用于