MonobjcMonobjc Documented Class Library
DragImageForSelectionWithEventOrigin Method (event, origin)
NamespacesMonobjc.AppKitNSTextViewDragImageForSelectionWithEventOrigin(NSEvent, NSPoint%)

Returns an appropriate drag image for the drag initiated by the specified event.

Original signature is '- (NSImage *)dragImageForSelectionWithEvent:(NSEvent *)event origin:(NSPointPointer)origin'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSImage DragImageForSelectionWithEventOrigin(
	NSEvent event,
	ref NSPoint origin
)
Public Overridable Function DragImageForSelectionWithEventOrigin ( _
	event As NSEvent, _
	ByRef origin As NSPoint _
) As NSImage
public:
virtual NSImage^ DragImageForSelectionWithEventOrigin(
	NSEvent^ event, 
	NSPoint% origin
)
Parameters
event (NSEvent)
The event that initiated the drag session.
origin (NSPoint%)
On return, the lower-left point of the image in view coordinates.
Return Value
An appropriate drag image for the drag initiated by event. May be nil, in which case a default icon will be used.
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)