Edit

Share via


CALayer.MasksToBounds Property

Definition

Whether sublayers are clipped to the Bounds of this layer.

public virtual bool MasksToBounds { [Foundation.Export("masksToBounds")] get; [Foundation.Export("setMasksToBounds:")] 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