UICollectionView.SetCollectionViewLayout メソッド

定義

オーバーロード

SetCollectionViewLayout(UICollectionViewLayout, Boolean)

によって使用される を UICollectionViewLayout 変更します UICollectionView

SetCollectionViewLayout(UICollectionViewLayout, Boolean, UICompletionHandler)

この UICollectionViewによって使用されるレイアウトを設定します。

SetCollectionViewLayout(UICollectionViewLayout, Boolean)

によって使用される を UICollectionViewLayout 変更します UICollectionView

[Foundation.Export("setCollectionViewLayout:animated:")]
public virtual void SetCollectionViewLayout (UIKit.UICollectionViewLayout layout, bool animated);
abstract member SetCollectionViewLayout : UIKit.UICollectionViewLayout * bool -> unit
override this.SetCollectionViewLayout : UIKit.UICollectionViewLayout * bool -> unit

パラメーター

animated
Boolean

true 新しいレイアウトへの切り替えをアニメーション化する必要がある場合は 。

属性

注釈

UICollectionView 表示される前に、 に が CollectionViewLayout 割り当てられている必要があります。 アプリケーション開発者は、 (System.Drawing.RectangleF, UIKit.UICollectionViewLayout) コンストラクターでインスタンス化UICollectionViewするか、 を表示するUICollectionView前にこのメソッドを呼び出す必要があります。

適用対象

SetCollectionViewLayout(UICollectionViewLayout, Boolean, UICompletionHandler)

この UICollectionViewによって使用されるレイアウトを設定します。

[Foundation.Export("setCollectionViewLayout:animated:completion:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void SetCollectionViewLayout (UIKit.UICollectionViewLayout layout, bool animated, UIKit.UICompletionHandler completion);
abstract member SetCollectionViewLayout : UIKit.UICollectionViewLayout * bool * UIKit.UICompletionHandler -> unit
override this.SetCollectionViewLayout : UIKit.UICollectionViewLayout * bool * UIKit.UICompletionHandler -> unit

パラメーター

animated
Boolean

true 新しいレイアウトへの切り替えをアニメーション化する必要がある場合は 。

completion
UICompletionHandler

他のすべての操作が完了した後に実行する完了ハンドラー アクション。

属性

適用対象