UICollectionView.CollectionViewLayout Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.