CALayer.MasksToBounds Property

Definition

Whether sublayers are clipped to the Bounds of this layer.

[get: Foundation.Export("masksToBounds")]
[set: Foundation.Export("setMasksToBounds:")]
public virtual bool MasksToBounds { get; set; }
member this.MasksToBounds : bool with get, set

Property Value

The default value is false.

Attributes

Remarks

If true, the clipping mask matches the bounds of thisCALayer, including rounded corners.

Applies to