UICollectionView.CellForItem(NSIndexPath) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回 UICollectionViewCell 指定 NSIndexPath处的 。
[Foundation.Export("cellForItemAtIndexPath:")]
public virtual UIKit.UICollectionViewCell CellForItem (Foundation.NSIndexPath indexPath);
abstract member CellForItem : Foundation.NSIndexPath -> UIKit.UICollectionViewCell
override this.CellForItem : Foundation.NSIndexPath -> UIKit.UICollectionViewCell
参数
- indexPath
- NSIndexPath
指示 NSIndexPath 所需 UICollectionViewCell的节和项索引的 。
返回
对应于 UICollectionViewCell 参数的 indexPath
。 如果没有相应的 UICollectionViewCell,则函数返回 null
。
- 属性