Share via


UICollectionView.BackgroundView 属性

定义

一个 UIView ,它位于所有其他内容后面,并自动调整大小以填充整个边界。

public virtual UIKit.UIView BackgroundView { [Foundation.Export("backgroundView", ObjCRuntime.ArgumentSemantic.Strong)] get; [Foundation.Export("setBackgroundView:", ObjCRuntime.ArgumentSemantic.Strong)] set; }
member this.BackgroundView : UIKit.UIView with get, set

属性值

默认值为 null

属性

注解

如果保留默认值 null,则 的背景 UICollectionView 是其 BackgroundColor 属性的 vale。

适用于

另请参阅

  • <xref:UIKit.UICollectionViewLayout.RegisterClassForDecorationView>