Parameters
- dropInfo
- The data being dropped.
Panes and DockPanes that have registered themselves as drop targets (DAML isDropTarget) and have set DropInfo.Effects appropriately in OnDragOver, are automatically called by the framework whenever an object is dropped on them.
public override void OnDrop(ArcGIS.Desktop.Framework.DragDrop.DropData dropData) { foreach (var item in dropData.Items) { if (System.IO.Path.GetExtension(item.Data as string) == ".txt") { item.Handled = true; ReadTextFile(item.Data as string); return; } } } public override void OnDrop(ArcGIS.Desktop.Framework.DragDrop.DropData dropData) { foreach (var item in dropData.Items) { if (System.IO.Path.GetExtension(item.Data as string) == ".txt") { item.Handled = true; ReadTextFile(item.Data as string); return; } } }
Target Platforms: Windows 11, Windows 10