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


IToolControl.OnDrop Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (SystemUI)  

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,
  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

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