NSLayoutAttribute NSLayoutAttribute Enum

Definition

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

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public enum NSLayoutAttribute
type NSLayoutAttribute = 
Inheritance
NSLayoutAttributeNSLayoutAttribute
Attributes

Fields

Baseline Baseline 11

The line on which text without descenders sits.

Bottom Bottom 4

The bottom of the element.

BottomMargin BottomMargin 16

The margin from the bottom of the element.

CenterX CenterX 9

The left-to-right midpoint of the element.

CenterXWithinMargins CenterXWithinMargins 19

The X-center of the region bounded by the element's margins.

CenterY CenterY 10

The top-to-bottom midpoint of the element.

CenterYWithinMargins CenterYWithinMargins 20

The Y-center of the region bounded by the element's margins.

FirstBaseline FirstBaseline 12

The element's first baseline.

Height Height 8

The size of the element along the Y axis.

LastBaseline LastBaseline 11

The element's last baseline.

Leading Leading 5

In locales with right-to-left text, this value is equal to Left. In locales such as Hebrew or Arabic, equal to Right.

LeadingMargin LeadingMargin 17

The leading edge of the element's margin.

Left Left 1

The left-most X value of the element.

LeftMargin LeftMargin 13

The left margin of the element.

NoAttribute NoAttribute 0

Indicates no attribute.

Right Right 2

The right-most X value of the element.

RightMargin RightMargin 14

The right margin of the element.

Top Top 3

The top-most Y value of the element.

TopMargin TopMargin 15

The top margin of the element.

Trailing Trailing 6

In locales with right-to-left text, this value is equal to Right. In locales such as Hebrew or Arabic, equal to Left.

TrailingMargin TrailingMargin 18

The trailing margin of the element.

Width Width 7

The size of the element along the X axis.

Remarks

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

Applies to

See also