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
[C#]
public bool OnDrop (
    esriCmdBarType barType
);
[C++]
HRESULT OnDrop(
  esriCmdBarType barType
);
[C++]
Parameters
barType [in]

barType is a parameter of type esriCmdBarType

Product Availability

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

Description

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

Remarks

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

See Also

IToolControl Interface | esriCmdBarType Constants