iOS Guides | Samples

MonoTouch.UIKit.NSLayoutAttribute Enumeration

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

Syntax

[MonoTouch.ObjCRuntime.Native]
[MonoTouch.ObjCRuntime.Unavailable(MonoTouch.ObjCRuntime.PlatformName.WatchOS, MonoTouch.ObjCRuntime.PlatformArchitecture.All, null)]
public enum NSLayoutAttribute

Remarks

Values used to specify particular constraint attributes in constraint-based layouts. These values are primarily used by methods in the 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: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.NSLayoutAttribute are listed below.

See Also: Enum

Public Fields

BaselineNSLayoutAttribute. The line on which text without descenders sits.
BottomNSLayoutAttribute. The bottom of the element.
BottomMarginNSLayoutAttribute. The margin from the bottom of the element.
CenterXNSLayoutAttribute. The left-to-right midpoint of the element.
CenterXWithinMarginsNSLayoutAttribute. The X-center of the region bounded by the element's margins.
CenterYNSLayoutAttribute. The top-to-bottom midpoint of the element.
CenterYWithinMarginsNSLayoutAttribute. The Y-center of the region bounded by the element's margins.
FirstBaselineNSLayoutAttribute. The element's first baseline.
HeightNSLayoutAttribute. The size of the element along the Y axis.
LastBaselineNSLayoutAttribute. The element's last baseline.
LeadingNSLayoutAttribute. In locales with right-to-left text, this value is equal to NSLayoutAttribute.Left. In locales such as Hebrew or Arabic, equal to NSLayoutAttribute.Right.
LeadingMarginNSLayoutAttribute. The leading edge of the element's margin.
LeftNSLayoutAttribute. The left-most X value of the element.
LeftMarginNSLayoutAttribute. The left margin of the element.
NoAttributeNSLayoutAttribute. Indicates no attribute.
RightNSLayoutAttribute. The right-most X value of the element.
RightMarginNSLayoutAttribute. The right margin of the element.
TopNSLayoutAttribute. The top-most Y value of the element.
TopMarginNSLayoutAttribute. The top margin of the element.
TrailingNSLayoutAttribute. In locales with right-to-left text, this value is equal to NSLayoutAttribute.Right. In locales such as Hebrew or Arabic, equal to NSLayoutAttribute.Left.
TrailingMarginNSLayoutAttribute. The trailing margin of the element.
WidthNSLayoutAttribute. The size of the element along the X axis.