UIKit.UIView.AlignmentRectInsets Property
Adjustments to the UIView.Frame for use with Auto Layout.

Syntax

[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_6_0)]
[get: Foundation.Export("alignmentRectInsets")]
[get: ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_6_0)]
public virtual UIEdgeInsets AlignmentRectInsets { get; }

See Also

UIView.AlignmentRectForFrame
UIView.FrameForAlignmentRect
UIView.ViewForBaselineLayout

Value

The default value is an UIKit.UIEdgeInsets whose values are all zero.

Remarks

Application developers can use this property to modify the rectangle that is used by Auto Layout to control the UIKit.UIView's ultimate alignment.

Auto Layout uses "alignment rectangles" to layout subviews rather than the subviews' UIView.Frame. The UIView.Frame of a UIKit.UIView may include visual elements, such as drop-shadows, that are not symmetrical around the UIKit.UIView's logical center. The "alignment rectangle" for a UIKit.UIView should be related to its logical content.

By default, the "alignment rectangle" of a UIKit.UIView is the UIView.Frame plus the UIView.AlignmentRectInsets. The UIView.AlignmentRectForFrame and UIView.FrameForAlignmentRect methods can be used to fully customize the alignment rectangle.

Requirements

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