UITableView.MoveRow(NSIndexPath, NSIndexPath) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将行从 fromIndexPath
移动到 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
参数
- fromIndexPath
- NSIndexPath
指示 NSIndexPath 原始行的 。
- toIndexPath
- NSIndexPath
所需位置。
- 属性
注解
与 或) 相反 InsertRows(NSIndexPath[], UITableViewRowAnimation)DeleteRows(NSIndexPath[], UITableViewRowAnimation) ,没有用于移动行数组 (的函数。 应用程序开发人员必须重复调用此函数。 如果在动画块中 BeginUpdates()-EndUpdates() 调用此函数,则所有行操作都将作为单个动画发生。