MonobjcMonobjc Documented Class Library
DragImageAtOffsetEventPasteboardSourceSlideBack Method (anImage, imageLoc, mouseOffset, theEvent, pboard, sourceObject, slideBack)
NamespacesMonobjc.AppKitNSViewDragImageAtOffsetEventPasteboardSourceSlideBack(NSImage, NSPoint, NSSize, NSEvent, NSPasteboard, Id, Boolean)

Initiates a dragging operation from the receiver, allowing the user to drag arbitrary data with a specified icon into any application that has window or view objects that accept dragged data.

Original signature is '- (void)dragImage:(NSImage *)anImage at:(NSPoint)imageLoc offset:(NSSize)mouseOffset event:(NSEvent *)theEvent pasteboard:(NSPasteboard *)pboard source:(id)sourceObject slideBack:(BOOL)slideBack'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual void DragImageAtOffsetEventPasteboardSourceSlideBack(
	NSImage anImage,
	NSPoint imageLoc,
	NSSize mouseOffset,
	NSEvent theEvent,
	NSPasteboard pboard,
	Id sourceObject,
	bool slideBack
)
Public Overridable Sub DragImageAtOffsetEventPasteboardSourceSlideBack ( _
	anImage As NSImage, _
	imageLoc As NSPoint, _
	mouseOffset As NSSize, _
	theEvent As NSEvent, _
	pboard As NSPasteboard, _
	sourceObject As Id, _
	slideBack As Boolean _
)
public:
virtual void DragImageAtOffsetEventPasteboardSourceSlideBack(
	NSImage^ anImage, 
	NSPoint imageLoc, 
	NSSize mouseOffset, 
	NSEvent^ theEvent, 
	NSPasteboard^ pboard, 
	Id^ sourceObject, 
	bool slideBack
)
Parameters
anImage (NSImage)
The NSImage object to be dragged.
imageLoc (NSPoint)
The location of the image’s lower-left corner, in the receiver’s coordinate system. It determines the placement of the dragged image under the cursor. When determining the image location you should use the mouse down coordinate, provided in theEvent, rather than the current mouse location.
mouseOffset (NSSize)
This parameter is ignored.
theEvent (NSEvent)
The left mouse-down event that triggered the dragging operation (see discussion below).
pboard (NSPasteboard)
The pasteboard that holds the data to be transferred to the destination (see discussion below).
sourceObject (Id)
An object that serves as the controller of the dragging operation. It must conform to the NSDraggingSource informal protocol and is typically the receiver itself or its NSWindow object.
slideBack (Boolean)
A Boolean that determines whether the drag image should slide back if it’s rejected. The image slides back to imageLoc if slideBack is YES and the image isn’t accepted by the dragging destination. If NO the image doesn't slide back.
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)