MonobjcMonobjc Documented Class Library
DraggingImageForItemsAtIndexesWithEventOffset Method (indexes, event, dragImageOffset)
NamespacesMonobjc.AppKitNSCollectionViewDraggingImageForItemsAtIndexesWithEventOffset(NSIndexSet, NSEvent, NSPoint%)

This method computes and returns an image to use for dragging.

Original signature is '- (NSImage *)draggingImageForItemsAtIndexes:(NSIndexSet *)indexes withEvent:(NSEvent *)event offset:(NSPointPointer)dragImageOffset'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSImage DraggingImageForItemsAtIndexesWithEventOffset(
	NSIndexSet indexes,
	NSEvent event,
	out NSPoint dragImageOffset
Public Overridable Function DraggingImageForItemsAtIndexesWithEventOffset ( _
	indexes As NSIndexSet, _
	event As NSEvent, _
	<OutAttribute> ByRef dragImageOffset As NSPoint _
) As NSImage
virtual NSImage^ DraggingImageForItemsAtIndexesWithEventOffset(
	NSIndexSet^ indexes, 
	NSEvent^ event, 
	[OutAttribute] NSPoint% dragImageOffset
indexes (NSIndexSet)
The index set of the items to be dragged.
event (NSEvent)
Mouse drag event.
dragImageOffset (NSPoint%)
An in/out parameter that will initially be set to NSZeroPoint. it can be modified to reposition the returned image. A dragImageOffset of NSZeroPoint will cause the image to be centered under the mouse.
Return Value
An image containing a rendering of the visible portions of the views for each item.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

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