Düzenle

Aracılığıyla paylaş


UIView.BackgroundColor Property

Definition

Sets the background color of the UIView.

public virtual UIKit.UIColor BackgroundColor { [Foundation.Export("backgroundColor", ObjCRuntime.ArgumentSemantic.Strong)] get; [Foundation.Export("setBackgroundColor:", ObjCRuntime.ArgumentSemantic.Strong)] set; }
member this.BackgroundColor : UIKit.UIColor with get, set

Property Value

The default value is null.

This value can be null.

Attributes

Remarks

The BackgroundColor is the rear-most visible element of a UIView, but developers should be aware that certain UIView subclasses such as UITableViewCell and UICollectionViewCell have a BackgroundView that may obscure their BackgroundColor.

This member participates in the UIAppearance styling system. See the Appearance property and the AppearanceWhenContainedIn(Type[]) method.

Applies to