NSLayoutDimension.ConstraintEqualTo Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ConstraintEqualTo(nfloat) |
Creates a NSLayoutConstraint whose value is equal to that of the constraint of the |
ConstraintEqualTo(NSLayoutDimension, nfloat) |
Creates a NSLayoutConstraint whose value is equal to that of the constraint of the |
ConstraintEqualTo(NSLayoutDimension, nfloat, nfloat) |
Creates a NSLayoutConstraint whose value is equal to that of the constraint of the |
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
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.