MonobjcMonobjc Documented Class Library
DragFileFromRectSlideBackEvent Method (fullPath, aRect, slideBack, theEvent)
NamespacesMonobjc.AppKitNSViewDragFileFromRectSlideBackEvent(NSString, NSRect, Boolean, NSEvent)

Initiates a dragging operation from the receiver, allowing the user to drag a file icon to any application that has window or view objects that accept files.

Original signature is '- (BOOL)dragFile:(NSString *)fullPath fromRect:(NSRect)aRect slideBack:(BOOL)slideBack event:(NSEvent *)theEvent'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool DragFileFromRectSlideBackEvent(
	NSString fullPath,
	NSRect aRect,
	bool slideBack,
	NSEvent theEvent
)
Public Overridable Function DragFileFromRectSlideBackEvent ( _
	fullPath As NSString, _
	aRect As NSRect, _
	slideBack As Boolean, _
	theEvent As NSEvent _
) As Boolean
public:
virtual bool DragFileFromRectSlideBackEvent(
	NSString^ fullPath, 
	NSRect aRect, 
	bool slideBack, 
	NSEvent^ theEvent
)
Parameters
fullPath (NSString)
A string that specifies the absolute path for the file that is dragged.
aRect (NSRect)
A rectangle that describes the position of the icon in the receiver’s coordinate system.
slideBack (Boolean)
A Boolean that indicates whether the icon being dragged should slide back to its position in the receiver if the file isn’t accepted. The icon slides back to aRect if slideBack is YES, the file is not accepted by the dragging destination, and the user has not disabled icon animation; otherwise it simply disappears.
theEvent (NSEvent)
The mouse-down event object from which to initiate the drag operation. In particular, its mouse location is used for the offset of the icon being dragged.
Return Value
YES if the receiver successfully initiates the dragging operation (which doesn’t necessarily mean the dragging operation concluded successfully). Otherwise returns NO.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)