UITableViewSource.ShouldIndentWhileEditing(UITableView, NSIndexPath) Method

Definition

Whether the row specified by indexPath should be indented while the table is in edit mode.

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

Parameters

tableView
UITableView

Table view that contains the row.

indexPath
NSIndexPath

Location of the row.

Returns

true if the row's contents should be indented, otherwise false.

Attributes

Remarks

If this property is not implemented the default is true and the row is indented while the table view is in edit mode.

This method is used to force a row's content to be indented while the containing table view is in edit mode, regardless of whether the row itself is displaying edit controls. Being indented means the row content 'lines up' with other rows that may be displaying edit controls.

This type of indenting is not related to IndentationLevel(UITableView, NSIndexPath) which is used to indent row contents to represent a hierarchical relationship between rows.

Declared in [UITableViewDelegate]

Applies to