Поделиться через


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

Возвращаемое значение

Атрибуты

Применяется к