UITableViewDelegate_Extensions.CanPerformAction 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定 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
一開始觸發複製或貼上的物件。