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


UICollectionView.IndexPathForCell(UICollectionViewCell) Метод

Определение

Возвращает для NSIndexPathcell.

[Foundation.Export("indexPathForCell:")]
public virtual Foundation.NSIndexPath IndexPathForCell (UIKit.UICollectionViewCell cell);
abstract member IndexPathForCell : UIKit.UICollectionViewCell -> Foundation.NSIndexPath
override this.IndexPathForCell : UIKit.UICollectionViewCell -> Foundation.NSIndexPath

Параметры

cell
UICollectionViewCell

Объект UICollectionViewCell , для которого необходим индекс.

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

Свойство NSIndexPath заданного объекта UICollectionViewCell. Возвращает null f, ячейка не находится в этом UICollectionView

Атрибуты

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