UIKit.NSLayoutAttribute Enumeration
An enumeration of attributes for use with constraint-based layouts.

Syntax

[ObjCRuntime.Native]
public enum NSLayoutAttribute

Remarks

Values used to specify particular constraint attributes in constraint-based layouts. These values are primarily used by methods in the UIKit.NSLayoutConstraint class.

Members

Member NameDescription
BaselineThe line on which text without descenders sits.
BottomThe bottom of the element.
BottomMarginThe margin from the bottom of the element.
CenterXThe left-to-right midpoint of the element.
CenterXWithinMarginsThe X-center of the region bounded by the element's margins.
CenterYThe top-to-bottom midpoint of the element.
CenterYWithinMarginsThe Y-center of the region bounded by the element's margins.
FirstBaselineThe element's first baseline.
HeightThe size of the element along the Y axis.
LastBaselineThe element's last baseline.
LeadingIn locales with right-to-left text, this value is equal to NSLayoutAttribute.Left. In locales such as Hebrew or Arabic, equal to NSLayoutAttribute.Right.
LeadingMarginThe leading edge of the element's margin.
LeftThe left-most X value of the element.
LeftMarginThe left margin of the element.
NoAttributeIndicates no attribute.
RightThe right-most X value of the element.
RightMarginThe right margin of the element.
TopThe top-most Y value of the element.
TopMarginThe top margin of the element.
TrailingIn locales with right-to-left text, this value is equal to NSLayoutAttribute.Right. In locales such as Hebrew or Arabic, equal to NSLayoutAttribute.Left.
TrailingMarginThe trailing margin of the element.
WidthThe size of the element along the X axis.

Related content

Requirements

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