共用方式為


UICollectionViewLayout.RegisterClassForDecorationView(Type, NSString) 方法

定義

將依種類識別的類別註冊為裝飾檢視。

public void RegisterClassForDecorationView (Type viewType, Foundation.NSString kind);
member this.RegisterClassForDecorationView : Type * Foundation.NSString -> unit

參數

viewType
Type

將提供裝飾的類別類型。 使用 null 取消註冊先前的 。

kind
NSString

將使用已註冊型別的專案種類。

適用於