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 ,否則應用程式將會當機。
- 屬性
備註
此值必須在簡報之前設定,方法是使用 UICollectionView UIKit.UICollectionViewLayout) 建構函式或 SetCollectionViewLayout 方法。