Upravit

Sdílet prostřednictvím


UITableViewDataSource.CanEditRow(UITableView, NSIndexPath) Method

Definition

Whether the row located at indexPath should be editable.

[Foundation.Export("tableView:canEditRowAtIndexPath:")]
public virtual bool CanEditRow (UIKit.UITableView tableView, Foundation.NSIndexPath indexPath);
abstract member CanEditRow : UIKit.UITableView * Foundation.NSIndexPath -> bool
override this.CanEditRow : UIKit.UITableView * Foundation.NSIndexPath -> bool

Parameters

tableView
UITableView

Table view containing the row.

indexPath
NSIndexPath

Location of the row.

Returns

true if the row is editable, otherwise false.

Attributes

Remarks

This method allows specific rows to be editable or not. If this method is not implemented, all rows are assumed to be editable. Editable rows display the insertion or deletion control in their cell when the table view is in editing mode.

Rows that are not editable will ignore the EditingStyle property and will not be indented.

Rows that are editable, but should not display the insertion or deletion control, can return None from the EditingStyleForRow(UITableView, NSIndexPath) method on the table view's UITableViewSource.

Applies to