編輯

共用方式為


UICollectionViewDataSource.MoveItem Method

Definition

Moves the item at to .

[Foundation.Export("collectionView:moveItemAtIndexPath:toIndexPath:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void MoveItem (UIKit.UICollectionView collectionView, Foundation.NSIndexPath sourceIndexPath, Foundation.NSIndexPath destinationIndexPath);
abstract member MoveItem : UIKit.UICollectionView * Foundation.NSIndexPath * Foundation.NSIndexPath -> unit
override this.MoveItem : UIKit.UICollectionView * Foundation.NSIndexPath * Foundation.NSIndexPath -> unit

Parameters

collectionView
UICollectionView

The collection view that originated the request.

sourceIndexPath
NSIndexPath
destinationIndexPath
NSIndexPath
Attributes

Applies to