UIView.BackgroundColor UIView.BackgroundColor Property

Definition

Sets the background color of the UIView.

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

Property Value

The default value is null.

This value can be null.

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