Share via


NSLayoutAnchor<AnchorType>.ConstraintLessThanOrEqualTo Method

Definition

Overloads

Name Description
ConstraintLessThanOrEqualTo(NSLayoutAnchor<AnchorType>, NFloat)

Creates a NSLayoutConstraint whose value is at most equal to that of the constraint of the anchor plus constant pixels.

ConstraintLessThanOrEqualTo(NSLayoutAnchor<AnchorType>)

Creates a NSLayoutConstraint whose value is at most equal to that of the constraint of the anchor.

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:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual AppKit.NSLayoutConstraint ConstraintLessThanOrEqualTo(AppKit.NSLayoutAnchor<AnchorType> anchor, System.Runtime.InteropServices.NFloat constant);
[<Foundation.Export("constraintLessThanOrEqualToAnchor:constant:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member ConstraintLessThanOrEqualTo : AppKit.NSLayoutAnchor<'AnchorType (requires 'AnchorType :> Foundation.NSObject)> * System.Runtime.InteropServices.NFloat -> AppKit.NSLayoutConstraint
override this.ConstraintLessThanOrEqualTo : AppKit.NSLayoutAnchor<'AnchorType (requires 'AnchorType :> Foundation.NSObject)> * System.Runtime.InteropServices.NFloat -> AppKit.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 view.

Applies to

ConstraintLessThanOrEqualTo(NSLayoutAnchor<AnchorType>)

Creates a NSLayoutConstraint whose value is at most equal to that of the constraint of the anchor.

[Foundation.Export("constraintLessThanOrEqualToAnchor:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual AppKit.NSLayoutConstraint ConstraintLessThanOrEqualTo(AppKit.NSLayoutAnchor<AnchorType> anchor);
[<Foundation.Export("constraintLessThanOrEqualToAnchor:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member ConstraintLessThanOrEqualTo : AppKit.NSLayoutAnchor<'AnchorType (requires 'AnchorType :> Foundation.NSObject)> -> AppKit.NSLayoutConstraint
override this.ConstraintLessThanOrEqualTo : AppKit.NSLayoutAnchor<'AnchorType (requires 'AnchorType :> Foundation.NSObject)> -> AppKit.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 view />.

Applies to