MonobjcMonobjc Documented Class Library
CollectionViewDraggingImageForItemsAtIndexesWithEventOffset Method (collectionView, indexes, event, dragImageOffset)
NamespacesMonobjc.AppKitINSCollectionViewDelegateCollectionViewDraggingImageForItemsAtIndexesWithEventOffset(NSCollectionView, NSIndexSet, NSEvent, NSPoint%)

Sent to the delegate to allow creation of a custom image to represent collection view items during a drag operation.

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

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
NSImage CollectionViewDraggingImageForItemsAtIndexesWithEventOffset(
	NSCollectionView collectionView,
	NSIndexSet indexes,
	NSEvent event,
	ref NSPoint dragImageOffset
Function CollectionViewDraggingImageForItemsAtIndexesWithEventOffset ( _
	collectionView As NSCollectionView, _
	indexes As NSIndexSet, _
	event As NSEvent, _
	ByRef dragImageOffset As NSPoint _
) As NSImage
NSImage^ CollectionViewDraggingImageForItemsAtIndexesWithEventOffset(
	NSCollectionView^ collectionView, 
	NSIndexSet^ indexes, 
	NSEvent^ event, 
	NSPoint% dragImageOffset
collectionView (NSCollectionView)
The collection view that send the message.
indexes (NSIndexSet)
The indexes of the dragging items.
event (NSEvent)
The mouse down event that initiated the drag.
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)