NSLayoutDimension.ConstraintEqualTo Method

Definition

Overloads

ConstraintEqualTo(nfloat)

Creates a NSLayoutConstraint whose value is equal to that of the constraint of the constant in logical pixels.

ConstraintEqualTo(NSLayoutDimension, nfloat)

Creates a NSLayoutConstraint whose value is equal to that of the constraint of the anchor multiplied by multiplier.

ConstraintEqualTo(NSLayoutDimension, nfloat, nfloat)

Creates a NSLayoutConstraint whose value is equal to that of the constraint of the anchor multiplied by multiplier plus constant pixels.

ConstraintEqualTo(nfloat)

Creates a NSLayoutConstraint whose value is equal to that of the constraint of the constant in logical pixels.

[Foundation.Export("constraintEqualToConstant:")]
public virtual UIKit.NSLayoutConstraint ConstraintEqualTo (nfloat constant);
override this.ConstraintEqualTo : nfloat -> UIKit.NSLayoutConstraint

Parameters

constant
nfloat

An nfloat specifying the desired constant value.

Returns

Attributes

Remarks

As with other methods of this class, this method returns a new NSLayoutConstraint but does not add and activate it to the current UIView.

Applies to

ConstraintEqualTo(NSLayoutDimension, nfloat)

Creates a NSLayoutConstraint whose value is equal to that of the constraint of the anchor multiplied by multiplier.

[Foundation.Export("constraintEqualToAnchor:multiplier:")]
public virtual UIKit.NSLayoutConstraint ConstraintEqualTo (UIKit.NSLayoutDimension anchor, nfloat multiplier);
override this.ConstraintEqualTo : UIKit.NSLayoutDimension * nfloat -> UIKit.NSLayoutConstraint

Parameters

anchor
NSLayoutDimension

The NSLayoutAnchor<AnchorType> whose constraint value should be copied.

multiplier
nfloat

The value by which to multiply the anchor.

Returns

Attributes

Remarks

As with other methods of this class, this method returns a new NSLayoutConstraint but does not add and activate it to the current UIView.

Applies to

ConstraintEqualTo(NSLayoutDimension, nfloat, nfloat)

Creates a NSLayoutConstraint whose value is equal to that of the constraint of the anchor multiplied by multiplier plus constant pixels.

[Foundation.Export("constraintEqualToAnchor:multiplier:constant:")]
public virtual UIKit.NSLayoutConstraint ConstraintEqualTo (UIKit.NSLayoutDimension anchor, nfloat multiplier, nfloat constant);
override this.ConstraintEqualTo : UIKit.NSLayoutDimension * nfloat * nfloat -> UIKit.NSLayoutConstraint

Parameters

anchor
NSLayoutDimension

The NSLayoutAnchor<AnchorType> whose constraint value should be copied.

multiplier
nfloat

The value by which to multiply the anchor.

constant
nfloat

The number of logical pixels to add to the value of anchor.

Returns

Attributes

Remarks

As with other methods of this class, this method returns a new NSLayoutConstraint but does not add and activate it to the current UIView.

Applies to