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
回 。
- 屬性