Szerkesztés

Megosztás a következőn keresztül:


UICollectionViewDelegate_Extensions.CanPerformAction Method

Definition

Whether the cell at the specified indexPath supports the specified action.

public static bool CanPerformAction (this UIKit.IUICollectionViewDelegate This, UIKit.UICollectionView collectionView, ObjCRuntime.Selector action, Foundation.NSIndexPath indexPath, Foundation.NSObject sender);
static member CanPerformAction : UIKit.IUICollectionViewDelegate * UIKit.UICollectionView * ObjCRuntime.Selector * Foundation.NSIndexPath * Foundation.NSObject -> bool

Parameters

This
IUICollectionViewDelegate

The instance on which this extension method operates.

collectionView
UICollectionView

The collection view that originated the request.

action
Selector
indexPath
NSIndexPath
sender
NSObject

Returns

The default value is false.

Remarks

This method is called after ShouldShowMenu(IUICollectionViewDelegate, UICollectionView, NSIndexPath) and allows the developer to remove particular menu items from the displayed editing menu.

Applies to