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


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 если указывает несуществующий индекс.

Атрибуты

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