This document is archived and information here might be outdated.  Recommended version.

IToolControl.OnDrop Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > SystemUI > ESRI.ArcGIS.SystemUI > Interfaces > IT > IToolControl Interface > IToolControl.OnDrop Method
ArcGIS Developer Help

IToolControl.OnDrop Method

Indicates if the drag-drop operation is valid.

[Visual Basic .NET]
Public Function OnDrop ( _
    ByVal barType As esriCmdBarType _
) As Boolean
public bool OnDrop (
    esriCmdBarType barType
  esriCmdBarType barType
barType [in]

barType is a parameter of type esriCmdBarType

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


barType specifies which type of commandbar on which this ToolControl can be dropped. Use one of the esriCmdBarType constants.


In most cases, a ToolControl should only be used on a toolbar.

See Also

IToolControl Interface | esriCmdBarType Constants