Share via


MapControl.MapElementClick 事件

定義

當用戶點選或按兩下 MapElement 上的 MapControl時發生。

// Register
event_token MapElementClick(TypedEventHandler<MapControl, MapElementClickEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MapControl::MapElementClick_revoker MapElementClick(auto_revoke_t, TypedEventHandler<MapControl, MapElementClickEventArgs const&> const& handler) const;
public event TypedEventHandler<MapControl,MapElementClickEventArgs> MapElementClick;
function onMapElementClick(eventArgs) { /* Your code */ }
mapControl.addEventListener("mapelementclick", onMapElementClick);
mapControl.removeEventListener("mapelementclick", onMapElementClick);
- or -
mapControl.onmapelementclick = onMapElementClick;
Public Custom Event MapElementClick As TypedEventHandler(Of MapControl, MapElementClickEventArgs) 

事件類型

適用於