次の方法で共有


UICollectionViewLayoutAttributes.CreateForCell メソッド

定義

オーバーロード

CreateForCell(NSIndexPath)

指定した index.| にあるセルの UICollectionViewLayoutAttributes を作成します。UICollectionViewLayon を作成します

CreateForCell<T>(NSIndexPath)

指定したインデックス パスにあるセルに対して、指定した型のレイアウト属性オブジェクトを作成します。

CreateForCell(NSIndexPath)

指定した index.| にあるセルの UICollectionViewLayoutAttributes を作成します。UICollectionViewLayon を作成します

[Foundation.Export("layoutAttributesForCellWithIndexPath:")]
public static UIKit.UICollectionViewLayoutAttributes CreateForCell(Foundation.NSIndexPath indexPath);
static member CreateForCell : Foundation.NSIndexPath -> UIKit.UICollectionViewLayoutAttributes

パラメーター

indexPath
NSIndexPath

レイアウト属性オブジェクトを作成するセルを記述するインデックス パス。

戻り値

指定したインデックス パスのセルを表す layout 属性オブジェクト。

属性

注釈

このメソッドは常に UICollectionViewLayoutAttributes を返します。 UICollectionViewLayoutAttributes をサブクラス化しており、サブクラスのインスタンスを返す必要がある場合は、代わりに を使用 CreateForCell(NSIndexPath) します。 このメソッドは、CreateForCell<UICollectionViewLayoutAttributes> を呼び出すことと同じです。

適用対象

CreateForCell<T>(NSIndexPath)

指定したインデックス パスにあるセルに対して、指定した型のレイアウト属性オブジェクトを作成します。

public static T CreateForCell<T>(Foundation.NSIndexPath indexPath) where T : UIKit.UICollectionViewLayoutAttributes;

型パラメーター

T

返すレイアウト属性オブジェクトの型。

パラメーター

indexPath
NSIndexPath

レイアウト属性オブジェクトを作成するセルを記述するインデックス パス。

戻り値

T

指定したインデックス パスのセルを表す layout 属性オブジェクト。

注釈

UICollectionViewLayoutAttributes サブクラスのレイアウト属性オブジェクトを作成するには、このメソッドを使用します。

適用対象