UITableViewDataSource.CanEditRow(UITableView, NSIndexPath) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.