Edit

Share via


UITableView.MoveRow(NSIndexPath, NSIndexPath) Method

Definition

Moves a row from fromIndexPath to toIndexPath.

[Foundation.Export("moveRowAtIndexPath:toIndexPath:")]
public virtual void MoveRow (Foundation.NSIndexPath fromIndexPath, Foundation.NSIndexPath toIndexPath);
abstract member MoveRow : Foundation.NSIndexPath * Foundation.NSIndexPath -> unit
override this.MoveRow : Foundation.NSIndexPath * Foundation.NSIndexPath -> unit

Parameters

fromIndexPath
NSIndexPath

An NSIndexPath indicating the original row.

toIndexPath
NSIndexPath

The desired location.

Attributes

Remarks

There is no function for moving an array of rows (in contrast to InsertRows(NSIndexPath[], UITableViewRowAnimation) or DeleteRows(NSIndexPath[], UITableViewRowAnimation)). The applicatin developer must instead repeatedly call this function. If this function is called within a BeginUpdates()-EndUpdates() animation block, all the row manipulation will occur as a single animation.

Applies to