ArcGIS Pro 2.8 API Reference Guide
OnAddToMapEx(Map,ILayerContainerEdit,Int32) Method

ArcGIS.Desktop.Mapping Namespace > IMappableItemEx Interface > OnAddToMapEx Method : OnAddToMapEx(Map,ILayerContainerEdit,Int32) Method
The map to which the item will be added.
A group layer to which the item will be added. If the group layer is null, then the item will be added directly to the map.
The position within the map or group layer. 0 represents the top most position.
Add the item to the map or groupLayer at the specified index.
Syntax
Overloads Function OnAddToMapEx( _
   ByVal map As Map, _
   ByVal groupLayer As ILayerContainerEdit, _
   ByVal index As Integer _
) As String()

Parameters

map
The map to which the item will be added.
groupLayer
A group layer to which the item will be added. If the group layer is null, then the item will be added directly to the map.
index
The position within the map or group layer. 0 represents the top most position.

Return Value

The set of Uris for any data created.
Remarks
This method is typically called when the item is dragged/dropped onto the TOC.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

IMappableItemEx Interface
IMappableItemEx Members
Overload List