iOS Guides | Samples

MonoTouch.UIKit.NSLayoutRelation Enumeration

An enumeration that specifies the relation between two attributes in a NSLayoutConstraint

Syntax

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

Remarks

Constraint-based layouts are based on relationships between the values of two NSLayoutAttributes. Constraints can be made more flexible by allowing relationships other than strict equality, that is, NSLayoutRelation.GreaterThanOrEqual or NSLayoutRelation.LessThanOrEqual. With relations other than NSLayoutRelation.Equal the constraint solver will attempt to minimize the difference in attributes. If NSLayoutRelation.Equal is specified and the constraint solver cannot solve the system of constraints, the constraint solver will throw an exception.

Members

Member NameDescription
EqualAn equality relationship.
GreaterThanOrEqualA greater-than-or-equal relationship.
LessThanOrEqualA less-than-or-equal relationship.

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

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

See Also: Enum

Public Fields

EqualNSLayoutRelation. An equality relationship.
GreaterThanOrEqualNSLayoutRelation. A greater-than-or-equal relationship.
LessThanOrEqualNSLayoutRelation. A less-than-or-equal relationship.