UICollectionView.CollectionViewLayout 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将 UICollectionViewLayout 布局此 UICollectionView元素的 。
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
属性值
必须先设置此值,然后才能显示 UICollectionView ,否则应用程序将崩溃。
- 属性
注解
必须在演示之前设置此值,方法是使用 C:UIKit.UICollectionView.UICollectionView (System.Drawing.RectangleF,UIKit.UICollectionViewLayout) 构造函数实例化 UICollectionView ,或使用 SetCollectionViewLayout 方法。