Share via


UICollectionViewLayoutAttributes.CreateForDecorationView 메서드

정의

오버로드

CreateForDecorationView(NSString, NSIndexPath)

장식 보기를 나타내는 레이아웃 특성 개체를 만듭니다.

CreateForDecorationView<T>(NSString, NSIndexPath)

장식 보기를 나타내는 특정 형식의 레이아웃 특성 개체를 만듭니다.

CreateForDecorationView(NSString, NSIndexPath)

장식 보기를 나타내는 레이아웃 특성 개체를 만듭니다.

[Foundation.Export("layoutAttributesForDecorationViewOfKind:withIndexPath:")]
public static UIKit.UICollectionViewLayoutAttributes CreateForDecorationView (Foundation.NSString kind, Foundation.NSIndexPath indexPath);
static member CreateForDecorationView : Foundation.NSString * Foundation.NSIndexPath -> UIKit.UICollectionViewLayoutAttributes

매개 변수

kind
NSString

장식 보기의 종류 식별자입니다.

indexPath
NSIndexPath

장식 보기와 관련된 인덱스 경로입니다.

반환

장식 보기를 나타내는 레이아웃 특성 개체입니다.

특성

설명

이 메서드를 사용하여 특정 종류의 장식 보기를 나타내는 레이아웃 특성 개체를 만듭니다. UICollectionViewLayoutAttributes를 서브클래스하고 서브클래스의 인스턴스를 반환해야 하는 경우 대신 를 사용합니다 CreateForDecorationView(NSString, NSIndexPath) . 이 메서드는 CreateForDecorationView UICollectionViewLayoutAttributes<를 호출하는> 것과 같습니다.

적용 대상

CreateForDecorationView<T>(NSString, NSIndexPath)

장식 보기를 나타내는 특정 형식의 레이아웃 특성 개체를 만듭니다.

public static T CreateForDecorationView<T> (Foundation.NSString kind, Foundation.NSIndexPath indexPath) where T : UIKit.UICollectionViewLayoutAttributes;

형식 매개 변수

T

반환할 레이아웃 특성 개체의 형식입니다.

매개 변수

kind
NSString

장식 보기의 종류 식별자입니다.

indexPath
NSIndexPath

장식 보기와 관련된 인덱스 경로입니다.

반환

T

장식 보기를 나타내는 특정 형식의 레이아웃 특성 개체입니다.

설명

이 메서드를 사용하여 특정 종류의 장식 보기를 나타내는 특정 형식의 레이아웃 특성 개체를 만듭니다.

적용 대상