UIView.ViewForBaselineLayout Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the UIView upon which baseline constraints should be applied.
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, "Override 'ViewForFirstBaselineLayout' or 'ViewForLastBaselineLayout'.")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIView ViewForBaselineLayout { [Foundation.Export("viewForBaselineLayout")] [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, "Override 'ViewForFirstBaselineLayout' or 'ViewForLastBaselineLayout'.")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] get; }
member this.ViewForBaselineLayout : UIKit.UIView
Property Value
The default value is this
UIView.
- Attributes
Remarks
Returns the UIView for which constraints relating to Baseline should apply. The baseline for many UIViews is the bottom of the view but in a UILabel, for instance, the baseline should be the position of the text baseline.
The returned value must be either this
or a view in this
's subview hierarchy.
Applies to
See also
- <xref:UIKit.UIView.AlignmentRectForFrame>
- <xref:UIKit.UIView.FrameForAlignmentRect>
- AlignmentRectInsets