Bagikan melalui


UICollectionViewDelegate_Extensions.GetTargetIndexPathForMove Metode

Definisi

Ketika ditimpa, memungkinkan pengembang untuk memodifikasi lokasi akhir item yang dipindahkan. (Misalnya, untuk melarang pemindahan ke .) tertentu 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

Parameter

This
IUICollectionViewDelegate

Instans tempat metode ekstensi ini beroperasi.

collectionView
UICollectionView

Tampilan koleksi yang berasal dari permintaan.

originalIndexPath
NSIndexPath
proposedIndexPath
NSIndexPath

Mengembalikan

Atribut

Berlaku untuk