This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > SystemUI > ESRI.ArcGIS.SystemUI > Interfaces > IT > IToolControl Interface > IToolControl.OnDrop Method (ArcObjects .NET 10.5 SDK) |
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,
VARIANT_BOOL* bValid
);
[C++]
Parameters barType [in]
barType is a parameter of type esriCmdBarType bValid [out, retval] bValid is a parameter of type VARIANT_BOOL
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.