Bewerken

Delen via


UIView.ViewForBaselineLayout Property

Definition

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