UIView.Alpha Property

Definition

Controls the transparency (alpha) value for the view.

[get: Foundation.Export("alpha")]
[set: Foundation.Export("setAlpha:")]
public virtual nfloat Alpha { get; set; }
member this.Alpha : nfloat with get, set

Property Value

0 to 1.

Attributes

Remarks

This controls the transparency for the view. If the value is 1.0, the view is completely opaque, if the value is 0.0 the view is completely transparent.

When the value of the view is in between 0 and 1, the contents of the view are composited with views that are lower in the view hierarchy or the superview.

Applies to