Share via


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

레이아웃 특성 개체를 만들 셀을 설명하는 인덱스 경로입니다.

반환

지정된 인덱스 경로의 셀을 나타내는 레이아웃 특성 개체입니다.

특성

설명

이 메서드는 항상 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

지정된 인덱스 경로의 셀을 나타내는 레이아웃 특성 개체입니다.

설명

이 메서드를 사용하여 UICollectionViewLayoutAttributes 하위 클래스의 레이아웃 특성 개체를 만듭니다.

적용 대상