This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > SystemUI > ESRI.ArcGIS.SystemUI > Classes > D > DataObjectHelper CoClass (ArcObjects .NET 10.5 SDK) |
Helper class for OLE drag and drop.
Provides helper methods and properties for retrieving data from an IDataObject interface. IDataObject is a windows standard interface used for dragging and droping data. This is available directly through the InternalObject property.
Use the ISupportErrorInfo method InterfaceSupportsErrorInfo to determine if the object supports extended error information. If the object supports extended error info, VC++ developers should use the OLE/COM IErrorInfo interface to access the ErrorInfo object. Visual Basic developers should use the global error object Err to retrieve this extended error information.
Interfaces | Description |
---|---|
IDataObjectHelper | Provides access to members for OLE drag and drop. |
ISupportErrorInfo | Indicates whether a specific interface can return Automation error objects. |
The DataObjectHelper can be used by the MapControl and PageLayoutControl to control drag-and-drop operations.
The NameFactory class (defined in esriSystem) performs a similar job for Name objects with non-ESRI controls, though the DataObjectHelper handles drag-and-drop for both Name objects and file names.