Modifier

Partager via


UIView.Opaque Property

Definition

Determines whether the view is opaque or not.

public virtual bool Opaque { [Foundation.Export("isOpaque")] get; [Foundation.Export("setOpaque:")] set; }
member this.Opaque : bool with get, set

Property Value

Attributes

Remarks

If you set this value to true, you should make sure that the entire area is painted, if you do not, the behavior is undefined. You should also set the Alpha property to 1.0.

Whenever possible, you should try to set the view as opaque, as that informs UIKit that the view does not need to be composited and blended with underlying views.

Applies to