net9.0-macos
namespace AppKit
{
    [Protocol(Name = "NSCollectionViewDelegate", WrapperType = typeof(NSCollectionViewDelegateWrapper))]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DraggingSessionWillBegin", ParameterByRef = new[] { false, false, false, false }, ParameterType = new[] { typeof(NSCollectionView), typeof(NSDraggingSession), typeof(CGPoint), typeof(NSSet) }, Selector = "collectionView:draggingSession:willBeginAtPoint:forItemsAtIndexPaths:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "ItemsChanged", ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(NSCollectionView), typeof(NSSet), typeof(NSCollectionViewItemHighlightState) }, Selector = "collectionView:didChangeItemsAtIndexPaths:toHighlightState:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "ItemsSelected", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSCollectionView), typeof(NSSet) }, Selector = "collectionView:didSelectItemsAtIndexPaths:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "ItemsDeselected", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSCollectionView), typeof(NSSet) }, Selector = "collectionView:didDeselectItemsAtIndexPaths:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WillDisplayItem", ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(NSCollectionView), typeof(NSCollectionViewItem), typeof(NSIndexPath) }, Selector = "collectionView:willDisplayItem:forRepresentedObjectAtIndexPath:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WillDisplaySupplementaryView", ParameterByRef = new[] { false, false, false, false }, ParameterType = new[] { typeof(NSCollectionView), typeof(NSView), typeof(NSString), typeof(NSIndexPath) }, Selector = "collectionView:willDisplaySupplementaryView:forElementKind:atIndexPath:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DisplayingItemEnded", ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(NSCollectionView), typeof(NSCollectionViewItem), typeof(NSIndexPath) }, Selector = "collectionView:didEndDisplayingItem:forRepresentedObjectAtIndexPath:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DisplayingSupplementaryViewEnded", ParameterByRef = new[] { false, false, false, false }, ParameterType = new[] { typeof(NSCollectionView), typeof(NSView), typeof(string), typeof(NSIndexPath) }, Selector = "collectionView:didEndDisplayingSupplementaryView:forElementOfKind:atIndexPath:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "UpdateDraggingItemsForDrag", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSCollectionView), typeof(INSDraggingInfo) }, Selector = "collectionView:updateDraggingItemsForDrag:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DraggingSessionWillBegin", ParameterByRef = new[] { false, false, false, false }, ParameterType = new[] { typeof(NSCollectionView), typeof(NSDraggingSession), typeof(CGPoint), typeof(NSIndexSet) }, Selector = "collectionView:draggingSession:willBeginAtPoint:forItemsAtIndexes:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "DraggingSessionEnded", ParameterByRef = new[] { false, false, false, false }, ParameterType = new[] { typeof(NSCollectionView), typeof(NSDraggingSession), typeof(CGPoint), typeof(NSDragOperation) }, Selector = "collectionView:draggingSession:endedAtPoint:dragOperation:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "CanDragItems", ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(NSCollectionView), typeof(NSIndexSet), typeof(NSEvent) }, ReturnType = typeof(bool), Selector = "collectionView:canDragItemsAtIndexes:withEvent:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WriteItems", ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(NSCollectionView), typeof(NSIndexSet), typeof(NSPasteboard) }, ReturnType = typeof(bool), Selector = "collectionView:writeItemsAtIndexes:toPasteboard:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "NamesOfPromisedFilesDroppedAtDestination", ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(NSCollectionView), typeof(NSUrl), typeof(NSIndexSet) }, ReturnType = typeof(string[]), Selector = "collectionView:namesOfPromisedFilesDroppedAtDestination:forDraggedItemsAtIndexes:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "ValidateDrop", ParameterByRef = new[] { false, false, true, true }, ParameterType = new[] { typeof(NSCollectionView), typeof(INSDraggingInfo), typeof(IntPtr), typeof(NSCollectionViewDropOperation) }, ReturnType = typeof(NSDragOperation), Selector = "collectionView:validateDrop:proposedIndex:dropOperation:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "AcceptDrop", ParameterByRef = new[] { false, false, false, false }, ParameterType = new[] { typeof(NSCollectionView), typeof(INSDraggingInfo), typeof(IntPtr), typeof(NSCollectionViewDropOperation) }, ReturnType = typeof(bool), Selector = "collectionView:acceptDrop:index:dropOperation:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "CanDragItems", ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(NSCollectionView), typeof(NSSet), typeof(NSEvent) }, ReturnType = typeof(bool), Selector = "collectionView:canDragItemsAtIndexPaths:withEvent:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "WriteItems", ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(NSCollectionView), typeof(NSSet), typeof(NSPasteboard) }, ReturnType = typeof(bool), Selector = "collectionView:writeItemsAtIndexPaths:toPasteboard:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "GetNamesOfPromisedFiles", ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(NSCollectionView), typeof(NSUrl), typeof(NSSet) }, ReturnType = typeof(string[]), Selector = "collectionView:namesOfPromisedFilesDroppedAtDestination:forDraggedItemsAtIndexPaths:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "GetDraggingImage", ParameterByRef = new[] { false, false, false, true }, ParameterType = new[] { typeof(NSCollectionView), typeof(NSSet), typeof(NSEvent), typeof(CGPoint) }, ReturnType = typeof(NSImage), Selector = "collectionView:draggingImageForItemsAtIndexPaths:withEvent:offset:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "ValidateDrop", ParameterByRef = new[] { false, false, true, true }, ParameterType = new[] { typeof(NSCollectionView), typeof(INSDraggingInfo), typeof(NSIndexPath), typeof(NSCollectionViewDropOperation) }, ReturnType = typeof(NSDragOperation), Selector = "collectionView:validateDrop:proposedIndexPath:dropOperation:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "AcceptDrop", ParameterByRef = new[] { false, false, false, false }, ParameterType = new[] { typeof(NSCollectionView), typeof(INSDraggingInfo), typeof(NSIndexPath), typeof(NSCollectionViewDropOperation) }, ReturnType = typeof(bool), Selector = "collectionView:acceptDrop:indexPath:dropOperation:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "GetPasteboardWriter", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSCollectionView), typeof(NSIndexPath) }, ReturnType = typeof(INSPasteboardWriting), Selector = "collectionView:pasteboardWriterForItemAtIndexPath:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "ShouldChangeItems", ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(NSCollectionView), typeof(NSSet), typeof(NSCollectionViewItemHighlightState) }, ReturnType = typeof(NSSet), Selector = "collectionView:shouldChangeItemsAtIndexPaths:toHighlightState:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "ShouldSelectItems", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSCollectionView), typeof(NSSet) }, ReturnType = typeof(NSSet), Selector = "collectionView:shouldSelectItemsAtIndexPaths:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "ShouldDeselectItems", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSCollectionView), typeof(NSSet) }, ReturnType = typeof(NSSet), Selector = "collectionView:shouldDeselectItemsAtIndexPaths:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "TransitionLayout", ParameterByRef = new[] { false, false, false }, ParameterType = new[] { typeof(NSCollectionView), typeof(NSCollectionViewLayout), typeof(NSCollectionViewLayout) }, ReturnType = typeof(NSCollectionViewTransitionLayout), Selector = "collectionView:transitionLayoutForOldLayout:newLayout:")]
    [ProtocolMember(IsProperty = false, IsRequired = false, IsStatic = false, Name = "PasteboardWriterForItem", ParameterByRef = new[] { false, false }, ParameterType = new[] { typeof(NSCollectionView), typeof(UIntPtr) }, ReturnType = typeof(INSPasteboardWriting), Selector = "collectionView:pasteboardWriterForItemAtIndex:")]
    [SupportedOSPlatform("macos")]
    [UnsupportedOSPlatform("maccatalyst")]
    public interface INSCollectionViewDelegate : INativeObject, IDisposable
}
nuget.org
0.0 %
Reference this API
Assembly Microsoft.macOS , Version=14.0.0.0, PublicKeyToken=84e04ff9cfb79065
Help Documentation
.NET 6.0-macos7.0-macos8.0-macos9.0-macos
OS Platforms

For the selected framework this API is only supported on the following OS platforms:

  • Mac Catalyst
  • macOS
  • Built-in API
  • Package-provided API

04/26/2024
An error has occurred. This application may no longer respond until reloaded. Reload 🗙