ArcGIS Pro 2.9 API Reference Guide
OnAddToMap(Map) Method

ArcGIS.Desktop.Mapping Namespace > IMappableItem Interface > OnAddToMap Method : OnAddToMap(Map) Method
The map to which the item will be added.
Add the item to the map.
Syntax
void OnAddToMap( 
   Map map
)
Overloads Sub OnAddToMap( _
   ByVal map As Map _
) 

Parameters

map
The map to which the item will be added.
Remarks
This method is typically called via the "Add Data" command, "Add Data from Path" command or if the item is dragged/dropped onto the map.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

IMappableItem Interface
IMappableItem Members
Overload List