- alignmentRect
- A System.Drawing.RectangleF for which the frame rectangle should be calculated.
The frame rectangle appropriate to the alignmentRect/
By overriding this method, application developers can fully customize the alignment rectangle of the MonoTouch.UIKit.UIView.Application developers who override this method must also override the complementary method UIView.AlignmentRectForFrame. The two methods must provide complementary values.
Auto Layout uses "alignment rectangles" to layout subviews rather than the subviews' UIView.Frame. The UIView.Frame of a MonoTouch.UIKit.UIView may include visual elements, such as drop-shadows, that are not symmetrical around the MonoTouch.UIKit.UIView's logical center. The "alignment rectangle" for a MonoTouch.UIKit.UIView should be related to its logical content.
By default, the "alignment rectangle" of a MonoTouch.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.