共用方式為


UITableViewDelegate_Extensions.CanPerformAction 方法

定義

指定 indexPath 上的儲存格是否可以執行指定的複製或貼上作業。

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

參數

This
IUITableViewDelegate

這個擴充方法運作所在的實例。

tableView
UITableView

包含資料列的資料表檢視。

action
Selector

識別複製或貼上方法的選取器, (亦即。 Copy(NSObject)Paste(NSObject))。

indexPath
NSIndexPath

資料列的位置。

sender
NSObject

一開始觸發複製或貼上的物件。

傳回

適用於