UIView.ViewForBaselineLayout 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)]
[get: Foundation.Export("viewForBaselineLayout")]
[get: ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, "Override 'ViewForFirstBaselineLayout' or 'ViewForLastBaselineLayout'.")]
[get: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[get: ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIView ViewForBaselineLayout { get; }
member this.ViewForBaselineLayout : UIKit.UIView

Property Value

The default value is this UIView.

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