MonobjcMonobjc Documented Class Library
CollectionViewCanDragItemsAtIndexesWithEventMessage Method (collectionView, indexes, event)
NamespacesMonobjc.AppKitNSCollectionView..::..NSCollectionViewDelegateEventDispatcherCollectionViewCanDragItemsAtIndexesWithEventMessage(NSCollectionView, NSIndexSet, NSEvent)

Returns whether the collection view can attempt to initiate a drag for the given event and items.

Original signature is '- (BOOL)collectionView:(NSCollectionView *)collectionView canDragItemsAtIndexes:(NSIndexSet *)indexes withEvent:(NSEvent *)event'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public bool CollectionViewCanDragItemsAtIndexesWithEventMessage(
	NSCollectionView collectionView,
	NSIndexSet indexes,
	NSEvent event
Public Function CollectionViewCanDragItemsAtIndexesWithEventMessage ( _
	collectionView As NSCollectionView, _
	indexes As NSIndexSet, _
	event As NSEvent _
) As Boolean
bool CollectionViewCanDragItemsAtIndexesWithEventMessage(
	NSCollectionView^ collectionView, 
	NSIndexSet^ indexes, 
	NSEvent^ event
collectionView (NSCollectionView)
The collection view that send the message.
indexes (NSIndexSet)
The indexes of the proposed dragging items.
event (NSEvent)
The mouse down event that initiated the drag.
Return Value
YES if the items can attempt to initiate a drag for the specified items, otherwise NO.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

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