Upravit

Sdílet prostřednictvím


UICollectionView.CollectionViewLayout Property

Definition

The UICollectionViewLayout that will lay out this UICollectionView's elements.

public virtual UIKit.UICollectionViewLayout CollectionViewLayout { [Foundation.Export("collectionViewLayout", ObjCRuntime.ArgumentSemantic.Strong)] get; [Foundation.Export("setCollectionViewLayout:", ObjCRuntime.ArgumentSemantic.Strong)] set; }
member this.CollectionViewLayout : UIKit.UICollectionViewLayout with get, set

Property Value

This value must be set prior to presenting the UICollectionView or the application will crash.

Attributes

Remarks

This value must be set prior to presentation, either by instantiating the UICollectionView with the C:UIKit.UICollectionView.UICollectionView(System.Drawing.RectangleF,UIKit.UICollectionViewLayout) constructor or with the SetCollectionViewLayout method.

Applies to