UIKit.UITableViewDelegate.CanPerformAction Method
Whether the editing menu should omit the Copy or Paste command for the specified row.

Syntax

[Foundation.Export("tableView:canPerformAction:forRowAtIndexPath:withSender:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_5_0)]
public virtual bool CanPerformAction (UITableView tableView, ObjCRuntime.Selector action, Foundation.NSIndexPath indexPath, Foundation.NSObject sender)

Parameters

tableView
Table view containing the row.
action
A selector identifying the Copy or Paste method (ie. UIResponder.Copy(Foundation.NSObject) or UIResponder.Paste(Foundation.NSObject)).
indexPath
Location of the row.
sender
Object that initially triggere the Copy or Paste.

Returns

true if the command corresponding to action, otherwise false. The default is false.

Remarks

Invoked after UITableViewSource.ShouldShowMenu(UITableView, Foundation.NSIndexPath) to potentially exclude one of the commands (Copy or Paste) from the editing menu. For example, if the user triggers the editing menu on a row that does not accept pasted content, return false from this method.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0