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


IARControl.EnableFileDrop Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > PublisherControls > ESRI.ArcGIS.PublisherControls > Interfaces > IA > IARControl Interface > IARControl.EnableFileDrop Property
ArcGIS Developer Help

IARControl.EnableFileDrop Property

Indicates whether Published Map Files can be dropped onto the control.

[Visual Basic .NET]
Public Property EnableFileDrop As Boolean
[C#]
public bool EnableFileDrop {get; set;}

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

Indicates if the ArcReaderControl will load Published Map Files (*.pmf) by the user interactively dropping files onto the ArcReaderControl from other applications such as ArcCatalog or Windows Explorer. The ArcReaderControl itself will determine if the file that has been dropped is a PMF document that can be loaded into the ArcReaderControl.

By default dragging a file over the ArcReaderControl will cause the mouse cursor to change to an �add data� cursor. Setting the EnableFileDrop property to False, will cause the mouse cursor to change to a �no entry� cursor when files are dragged over the ArcReaderControl. 

If a document is successfully loaded the CurrentView and the CurrentARTool will be set. The default CurrentARTool  is specified by the �DefaultDataTool� and �DefaultLayoutTool� settings in the ARConfiguration. The DocumentFilename property will update itself with the path and filename of the currently loaded document, and the DocumentComment property to update itself with any comments that were supplied by the publisher of the document.

 

See Also

IARControl Interface