Share via


UICollectionView.GetLayoutAttributesForItem(NSIndexPath) 方法

定义

返回指定 UICollectionViewCell的布局信息。

[Foundation.Export("layoutAttributesForItemAtIndexPath:")]
public virtual UIKit.UICollectionViewLayoutAttributes GetLayoutAttributesForItem (Foundation.NSIndexPath indexPath);
abstract member GetLayoutAttributesForItem : Foundation.NSIndexPath -> UIKit.UICollectionViewLayoutAttributes
override this.GetLayoutAttributesForItem : Foundation.NSIndexPath -> UIKit.UICollectionViewLayoutAttributes

参数

indexPath
NSIndexPath

一个 NSIndexPath ,指示正在布局的所需单元格。

返回

一个 UICollectionViewLayoutAttributes 指定布局属性的对象。 null如果 指定不存在的索引,indexPath则返回 。

属性

适用于