Share via


INSCollectionViewDataSource Interface

Definition

This interface represents the Objective-C protocol NSCollectionViewDataSource.

[Foundation.Protocol(Name="NSCollectionViewDataSource", WrapperType=typeof(AppKit.NSCollectionViewDataSourceWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetNumberofItems", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSCollectionView), typeof(System.IntPtr) }, ReturnType=typeof(System.IntPtr), Selector="collectionView:numberOfItemsInSection:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetItem", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSCollectionView), typeof(Foundation.NSIndexPath) }, ReturnType=typeof(AppKit.NSCollectionViewItem), Selector="collectionView:itemForRepresentedObjectAtIndexPath:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetNumberOfSections", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(AppKit.NSCollectionView) }, ReturnType=typeof(System.IntPtr), Selector="numberOfSectionsInCollectionView:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetView", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSCollectionView), typeof(Foundation.NSString), typeof(Foundation.NSIndexPath) }, ReturnType=typeof(AppKit.NSView), Selector="collectionView:viewForSupplementaryElementOfKind:atIndexPath:")]
public interface INSCollectionViewDataSource : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="NSCollectionViewDataSource", WrapperType=typeof(AppKit.NSCollectionViewDataSourceWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetNumberofItems", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSCollectionView), typeof(System.IntPtr) }, ReturnType=typeof(System.IntPtr), Selector="collectionView:numberOfItemsInSection:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetItem", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSCollectionView), typeof(Foundation.NSIndexPath) }, ReturnType=typeof(AppKit.NSCollectionViewItem), Selector="collectionView:itemForRepresentedObjectAtIndexPath:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetNumberOfSections", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(AppKit.NSCollectionView) }, ReturnType=typeof(System.IntPtr), Selector="numberOfSectionsInCollectionView:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetView", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(AppKit.NSCollectionView), typeof(Foundation.NSString), typeof(Foundation.NSIndexPath) }, ReturnType=typeof(AppKit.NSView), Selector="collectionView:viewForSupplementaryElementOfKind:atIndexPath:")>]
type INSCollectionViewDataSource = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Remarks

A class that implements this interface (and subclasses NSObject) will be exported to Objective-C as implementing the Objective-C protocol this interface represents.

A class may also implement members from this interface to implement members from the protocol.

Applies to