NSLayoutAnchor<AnchorType>.ConstraintLessThanOrEqualTo Method
Definition
Overloads
ConstraintLessThanOrEqualTo(NSLayoutAnchor<AnchorType>) |
Creates a NSLayoutConstraint whose value is at most equal to that of the constraint of the |
ConstraintLessThanOrEqualTo(NSLayoutAnchor<AnchorType>, nfloat) |
Creates a NSLayoutConstraint whose value is at most equal to that of the constraint of the |
ConstraintLessThanOrEqualTo(NSLayoutAnchor<AnchorType>)
Creates a NSLayoutConstraint whose value is at most equal to that of the constraint of the anchor
.
[Foundation.Export("constraintLessThanOrEqualToAnchor:")]
public virtual UIKit.NSLayoutConstraint ConstraintLessThanOrEqualTo (UIKit.NSLayoutAnchor<AnchorType> anchor);
abstract member ConstraintLessThanOrEqualTo : UIKit.NSLayoutAnchor<'AnchorType (requires 'AnchorType :> Foundation.NSObject)> -> UIKit.NSLayoutConstraint
override this.ConstraintLessThanOrEqualTo : UIKit.NSLayoutAnchor<'AnchorType (requires 'AnchorType :> Foundation.NSObject)> -> UIKit.NSLayoutConstraint
Parameters
- anchor
- NSLayoutAnchor<AnchorType>
The NSLayoutAnchor<AnchorType> whose constraint value should be used.
Returns
A new NSLayoutConstraint.
- 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
ConstraintLessThanOrEqualTo(NSLayoutAnchor<AnchorType>, nfloat)
Creates a NSLayoutConstraint whose value is at most equal to that of the constraint of the anchor
plus constant
pixels.
[Foundation.Export("constraintLessThanOrEqualToAnchor:constant:")]
public virtual UIKit.NSLayoutConstraint ConstraintLessThanOrEqualTo (UIKit.NSLayoutAnchor<AnchorType> anchor, nfloat constant);
abstract member ConstraintLessThanOrEqualTo : UIKit.NSLayoutAnchor<'AnchorType (requires 'AnchorType :> Foundation.NSObject)> * nfloat -> UIKit.NSLayoutConstraint
override this.ConstraintLessThanOrEqualTo : UIKit.NSLayoutAnchor<'AnchorType (requires 'AnchorType :> Foundation.NSObject)> * nfloat -> UIKit.NSLayoutConstraint
Parameters
- anchor
- NSLayoutAnchor<AnchorType>
The NSLayoutAnchor<AnchorType> whose constraint value should be used.
- constant
- nfloat
The number of logical pixels to add to the value of anchor
.
Returns
A new NSLayoutConstraint.
- 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.