alexa
menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class SfCollectionView

    Inheritance
    System.Object
    SfCollectionView
    Namespace: Syncfusion.XForms.MacOS.Core
    Assembly: Syncfusion.Core.XForms.macOS.dll
    Syntax
    public class SfCollectionView : NSScrollView

    Constructors

    SfCollectionView(CGRect)

    Declaration
    public SfCollectionView(CGRect frame)
    Parameters
    Type Name Description
    CoreGraphics.CGRect frame

    SfCollectionView(CGRect, NSCollectionViewLayout)

    Declaration
    public SfCollectionView(CGRect frame, NSCollectionViewLayout layout)
    Parameters
    Type Name Description
    CoreGraphics.CGRect frame
    AppKit.NSCollectionViewLayout layout

    Properties

    AllowsMultipleSelection

    Declaration
    public bool AllowsMultipleSelection { get; set; }
    Property Value
    Type
    System.Boolean

    Alpha

    Declaration
    public nfloat Alpha { get; set; }
    Property Value
    Type
    System.nfloat

    BackgroundColor

    Declaration
    public override NSColor BackgroundColor { get; set; }
    Property Value
    Type
    AppKit.NSColor

    Center

    Declaration
    public CGPoint Center { get; }
    Property Value
    Type
    CoreGraphics.CGPoint

    CollectionView

    Declaration
    public NSCollectionView CollectionView { get; }
    Property Value
    Type
    AppKit.NSCollectionView

    CollectionViewLayout

    Declaration
    public NSCollectionViewLayout CollectionViewLayout { get; set; }
    Property Value
    Type
    AppKit.NSCollectionViewLayout

    ContentInset

    Declaration
    public NSEdgeInsets ContentInset { get; set; }
    Property Value
    Type
    AppKit.NSEdgeInsets

    ContentOffset

    Declaration
    public CGPoint ContentOffset { get; set; }
    Property Value
    Type
    CoreGraphics.CGPoint

    DataSource

    Declaration
    public INSCollectionViewDataSource DataSource { get; set; }
    Property Value
    Type
    AppKit.INSCollectionViewDataSource

    Delegate

    Declaration
    public INSCollectionViewDelegate Delegate { get; set; }
    Property Value
    Type
    AppKit.INSCollectionViewDelegate

    IsFlipped

    Declaration
    public override bool IsFlipped { get; }
    Property Value
    Type
    System.Boolean

    Selectable

    Declaration
    public bool Selectable { get; set; }
    Property Value
    Type
    System.Boolean

    VisibleCells

    Declaration
    public NSCollectionViewItem[] VisibleCells { get; }
    Property Value
    Type
    AppKit.NSCollectionViewItem[]

    WantsDefaultClipping

    Declaration
    public override bool WantsDefaultClipping { get; }
    Property Value
    Type
    System.Boolean

    Methods

    BringSubviewToFront(NSView)

    Declaration
    public virtual void BringSubviewToFront(NSView view)
    Parameters
    Type Name Description
    AppKit.NSView view

    CellForItem(NSIndexPath)

    Declaration
    public NSCollectionViewItem CellForItem(NSIndexPath indexPath)
    Parameters
    Type Name Description
    Foundation.NSIndexPath indexPath
    Returns
    Type
    AppKit.NSCollectionViewItem

    DeleteItems(NSIndexPath[])

    Declaration
    public void DeleteItems(NSIndexPath[] indexPaths)
    Parameters
    Type Name Description
    Foundation.NSIndexPath[] indexPaths

    DequeueReusableCell(String, NSIndexPath)

    Declaration
    public NSCollectionViewItem DequeueReusableCell(string identifier, NSIndexPath indexPath)
    Parameters
    Type Name Description
    System.String identifier
    Foundation.NSIndexPath indexPath
    Returns
    Type
    AppKit.NSCollectionViewItem

    Draw(CGRect)

    Declaration
    public virtual void Draw(CGRect rect)
    Parameters
    Type Name Description
    CoreGraphics.CGRect rect

    DrawRect(CGRect)

    Declaration
    public override void DrawRect(CGRect dirtyRect)
    Parameters
    Type Name Description
    CoreGraphics.CGRect dirtyRect

    GetCenter()

    Declaration
    public CGPoint GetCenter()
    Returns
    Type
    CoreGraphics.CGPoint

    IndexPathForCell(NSCollectionViewItem)

    Declaration
    public NSIndexPath IndexPathForCell(NSCollectionViewItem item)
    Parameters
    Type Name Description
    AppKit.NSCollectionViewItem item
    Returns
    Type
    Foundation.NSIndexPath

    IndexPathForItemAtPoint(CGPoint)

    Declaration
    public NSIndexPath IndexPathForItemAtPoint(CGPoint point)
    Parameters
    Type Name Description
    CoreGraphics.CGPoint point
    Returns
    Type
    Foundation.NSIndexPath

    InsertItems(NSIndexPath[])

    Declaration
    public void InsertItems(NSIndexPath[] indexPaths)
    Parameters
    Type Name Description
    Foundation.NSIndexPath[] indexPaths

    InsertSubview(NSView, Int32)

    Declaration
    public virtual void InsertSubview(NSView insertView, int index)
    Parameters
    Type Name Description
    AppKit.NSView insertView
    System.Int32 index

    IsDescendantOfView(NSView)

    Declaration
    public bool IsDescendantOfView(NSView aView)
    Parameters
    Type Name Description
    AppKit.NSView aView
    Returns
    Type
    System.Boolean

    Layout()

    Declaration
    public override void Layout()

    LayoutSubviews()

    Declaration
    public virtual void LayoutSubviews()

    MoveItem(NSIndexPath, NSIndexPath)

    Declaration
    public void MoveItem(NSIndexPath indexPath, NSIndexPath newIndexPath)
    Parameters
    Type Name Description
    Foundation.NSIndexPath indexPath
    Foundation.NSIndexPath newIndexPath

    PerformBatchUpdates(Action, Action<Boolean>)

    Declaration
    public void PerformBatchUpdates(Action updates, Action<bool> completionHandler)
    Parameters
    Type Name Description
    System.Action updates
    System.Action<System.Boolean> completionHandler

    RegisterClassForCell(Type, String)

    Declaration
    public void RegisterClassForCell(Type itemClass, string identifier)
    Parameters
    Type Name Description
    System.Type itemClass
    System.String identifier

    RegisterNibForCell(NSNib, String)

    Declaration
    public void RegisterNibForCell(NSNib nib, string identifier)
    Parameters
    Type Name Description
    AppKit.NSNib nib
    System.String identifier

    ReloadData()

    Declaration
    public void ReloadData()

    ScrollRectToVisible(CGRect, Boolean)

    Declaration
    public void ScrollRectToVisible(CGRect rect, bool animated)
    Parameters
    Type Name Description
    CoreGraphics.CGRect rect
    System.Boolean animated

    ScrollToItem(NSIndexPath, NSCollectionViewScrollPosition, Boolean)

    Declaration
    public void ScrollToItem(NSIndexPath indexPath, NSCollectionViewScrollPosition scrollPosition, bool animated)
    Parameters
    Type Name Description
    Foundation.NSIndexPath indexPath
    AppKit.NSCollectionViewScrollPosition scrollPosition
    System.Boolean animated

    SetNeedsDisplay()

    Declaration
    public void SetNeedsDisplay()

    SetNeedsLayout()

    Declaration
    public void SetNeedsLayout()

    TouchesBegan(NSSet, NSEvent)

    Declaration
    public virtual void TouchesBegan(NSSet touches, NSEvent theEvent)
    Parameters
    Type Name Description
    Foundation.NSSet touches
    AppKit.NSEvent theEvent

    TouchesBeganWithEvent(NSEvent)

    Declaration
    public override void TouchesBeganWithEvent(NSEvent theEvent)
    Parameters
    Type Name Description
    AppKit.NSEvent theEvent

    TouchesCancelled(NSSet, NSEvent)

    Declaration
    public virtual void TouchesCancelled(NSSet touches, NSEvent theEvent)
    Parameters
    Type Name Description
    Foundation.NSSet touches
    AppKit.NSEvent theEvent

    TouchesCancelledWithEvent(NSEvent)

    Declaration
    public override void TouchesCancelledWithEvent(NSEvent theEvent)
    Parameters
    Type Name Description
    AppKit.NSEvent theEvent

    TouchesEnded(NSSet, NSEvent)

    Declaration
    public virtual void TouchesEnded(NSSet touches, NSEvent theEvent)
    Parameters
    Type Name Description
    Foundation.NSSet touches
    AppKit.NSEvent theEvent

    TouchesEndedWithEvent(NSEvent)

    Declaration
    public override void TouchesEndedWithEvent(NSEvent theEvent)
    Parameters
    Type Name Description
    AppKit.NSEvent theEvent

    TouchesMoved(NSSet, NSEvent)

    Declaration
    public virtual void TouchesMoved(NSSet touches, NSEvent theEvent)
    Parameters
    Type Name Description
    Foundation.NSSet touches
    AppKit.NSEvent theEvent

    TouchesMovedWithEvent(NSEvent)

    Declaration
    public override void TouchesMovedWithEvent(NSEvent theEvent)
    Parameters
    Type Name Description
    AppKit.NSEvent theEvent

    ViewWillMoveToSuperview(NSView)

    Declaration
    public override void ViewWillMoveToSuperview(NSView newSuperview)
    Parameters
    Type Name Description
    AppKit.NSView newSuperview

    ViewWillMoveToWindow(NSWindow)

    Declaration
    public override void ViewWillMoveToWindow(NSWindow newWindow)
    Parameters
    Type Name Description
    AppKit.NSWindow newWindow

    WillMoveToSuperview(NSView)

    Declaration
    public virtual void WillMoveToSuperview(NSView newsuper)
    Parameters
    Type Name Description
    AppKit.NSView newsuper

    WillMoveToWindow(NSWindow)

    Declaration
    public virtual void WillMoveToWindow(NSWindow newWindow)
    Parameters
    Type Name Description
    AppKit.NSWindow newWindow

    WillRemoveSubview(NSView)

    Declaration
    public override void WillRemoveSubview(NSView subview)
    Parameters
    Type Name Description
    AppKit.NSView subview
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved