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需要索引的 。

返回

指定的 UICollectionViewCellNSIndexPath。 返回 null f 单元格不在此 UICollectionView

属性

适用于