UIKit.NSLayoutConstraint.Create Method
Factory method for creating a constraint.

Syntax

[Foundation.Export("constraintWithItem:attribute:relatedBy:toItem:attribute:multiplier:constant:")]
public static NSLayoutConstraint Create (Foundation.NSObject view1, NSLayoutAttribute attribute1, NSLayoutRelation relation, Foundation.NSObject view2, NSLayoutAttribute attribute2, nfloat multiplier, nfloat constant)

Parameters

view1
First view in the constraint.
attribute1
Attribute for the first view.
relation
Relationships between the view1 and the view2.
view2

Second view in the constraint.

This parameter can be null.

This parameter can be null.

attribute2
Attribute for the second view.
multiplier
Multiplier applied to the second attribute.
constant
Constants to add.

Returns

New constraint with the specified parameters.

Remarks

Creates a constraint relationship between the view1 and the view2 that satisfies the following linear equation:

attribute1 = multiplier x attribute2 + constant

<br>

Requirements

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