MapControl.MapTapped 事件

定义

当用户点击 MapControl 或使用鼠标左键单击它时发生。 MapInputEventArgs 的实例为此事件提供数据。

// Register
event_token MapTapped(TypedEventHandler<MapControl, MapInputEventArgs const&> const& handler) const;

// Revoke with event_token
void MapTapped(event_token const* cookie) const;

// Revoke with event_revoker
MapControl::MapTapped_revoker MapTapped(auto_revoke_t, TypedEventHandler<MapControl, MapInputEventArgs const&> const& handler) const;
public event TypedEventHandler<MapControl,MapInputEventArgs> MapTapped;
function onMapTapped(eventArgs) { /* Your code */ }
mapControl.addEventListener("maptapped", onMapTapped);
mapControl.removeEventListener("maptapped", onMapTapped);
- or -
mapControl.onmaptapped = onMapTapped;
Public Custom Event MapTapped As TypedEventHandler(Of MapControl, MapInputEventArgs) 

事件类型

适用于

另请参阅