MonobjcMonobjc Documented Class Library
CollectionViewValidateDropProposedIndexDropOperationMessage Method (collectionView, draggingInfo, proposedDropIndex, proposedDropOperation)
NamespacesMonobjc.AppKitNSCollectionView..::..NSCollectionViewDelegateEventDispatcherCollectionViewValidateDropProposedIndexDropOperationMessage(NSCollectionView, INSDraggingInfo, NSInteger%, NSCollectionViewDropOperation%)

Invoked to determine a valid drop target.

Original signature is '- (NSDragOperation)collectionView:(NSCollectionView *)collectionView validateDrop:(id < NSDraggingInfo >)draggingInfo proposedIndex:(NSInteger *)proposedDropIndex dropOperation:(NSCollectionViewDropOperation *)proposedDropOperation'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public NSDragOperation CollectionViewValidateDropProposedIndexDropOperationMessage(
	NSCollectionView collectionView,
	INSDraggingInfo draggingInfo,
	ref NSInteger proposedDropIndex,
	ref NSCollectionViewDropOperation proposedDropOperation
)
Public Function CollectionViewValidateDropProposedIndexDropOperationMessage ( _
	collectionView As NSCollectionView, _
	draggingInfo As INSDraggingInfo, _
	ByRef proposedDropIndex As NSInteger, _
	ByRef proposedDropOperation As NSCollectionViewDropOperation _
) As NSDragOperation
public:
NSDragOperation CollectionViewValidateDropProposedIndexDropOperationMessage(
	NSCollectionView^ collectionView, 
	INSDraggingInfo^ draggingInfo, 
	NSInteger% proposedDropIndex, 
	NSCollectionViewDropOperation% proposedDropOperation
)
Parameters
collectionView (NSCollectionView)
The collection view that send the message.
draggingInfo (INSDraggingInfo)
An object containing details about this dragging operation.
proposedDropIndex (NSInteger%)
The proposed drop index. This parameter is passed by-reference and can be modified retarget the drop operation.
proposedDropOperation (NSCollectionViewDropOperation%)
The proposed drop operation. This parameter is passed by-reference and can be modified to change the drop operation.
Return Value
A value that indicates which dragging operation the data source will perform. It must return something other than NSDragOperationNone to accept the drop
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

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