UIKit.UIView.ClipsToBounds Property
Specifies whether the UIView.Subviews are confined to the UIView.Bounds of the receiver.

Syntax

[get: Foundation.Export("clipsToBounds")]
[set: Foundation.Export("setClipsToBounds:")]
public virtual bool ClipsToBounds { get; set; }

Value

The default value is false.

Remarks

If this property is false, subviews whose UIView.Frame extends beyond their UIView.Superview's UIView.Bounds will be fully displayed. If this property is true, only that portion that lies within their UIView.Superview's UIView.Bounds will be displayed.

In the following image, the green rectangles are subviews of the blue rectangles (var innerView = new UIView(new RectangleF(-10, 10, 175, 25));). The top blue rectangle has its UIView.ClipsToBounds left at the default false value while the lower rectangle shows the clipping that occurs when UIView.ClipsToBounds is set to true.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0