UICollectionViewDelegate.GetTargetIndexPathForMove 方法

定义

重写后,允许开发人员修改移动项的最终位置。 (例如,禁止移动到特定 proposedIndexPath.)

[Foundation.Export("collectionView:targetIndexPathForMoveFromItemAtIndexPath:toProposedIndexPath:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual Foundation.NSIndexPath GetTargetIndexPathForMove (UIKit.UICollectionView collectionView, Foundation.NSIndexPath originalIndexPath, Foundation.NSIndexPath proposedIndexPath);
abstract member GetTargetIndexPathForMove : UIKit.UICollectionView * Foundation.NSIndexPath * Foundation.NSIndexPath -> Foundation.NSIndexPath
override this.GetTargetIndexPathForMove : UIKit.UICollectionView * Foundation.NSIndexPath * Foundation.NSIndexPath -> Foundation.NSIndexPath

参数

collectionView
UICollectionView

发起请求的集合视图。

originalIndexPath
NSIndexPath
proposedIndexPath
NSIndexPath

返回

属性

适用于