UIView.BackgroundColor Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.