共用方式為


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

傳回

屬性

適用於