共用方式為


UICollectionViewDelegate_Extensions.GetTargetIndexPathForMove 方法

定義

覆寫時,可讓開發人員修改移動專案的最終位置。 (例如,不允許移至特定 proposedIndexPath .)

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static Foundation.NSIndexPath GetTargetIndexPathForMove (this UIKit.IUICollectionViewDelegate This, UIKit.UICollectionView collectionView, Foundation.NSIndexPath originalIndexPath, Foundation.NSIndexPath proposedIndexPath);
static member GetTargetIndexPathForMove : UIKit.IUICollectionViewDelegate * UIKit.UICollectionView * Foundation.NSIndexPath * Foundation.NSIndexPath -> Foundation.NSIndexPath

參數

This
IUICollectionViewDelegate

這個擴充方法運作所在的 實例。

collectionView
UICollectionView

產生要求的集合檢視。

originalIndexPath
NSIndexPath
proposedIndexPath
NSIndexPath

傳回

屬性

適用於