NSLayoutConstraint.SecondAnchor<AnchorType> Method

Definition

For an anchor-based constraint, returns the second anchor, properly downcast to AnchorType.

public AppKit.NSLayoutAnchor<AnchorType> SecondAnchor<AnchorType>() where AnchorType : Foundation.NSObject;
public AppKit.NSLayoutAnchor<AnchorType>? SecondAnchor<AnchorType>() where AnchorType : Foundation.NSObject;
member this.SecondAnchor : unit -> AppKit.NSLayoutAnchor<'AnchorType (requires 'AnchorType :> Foundation.NSObject)> (requires 'AnchorType :> Foundation.NSObject)

Type Parameters

AnchorType

The type of anchor to return.

Returns

The second anchor of the constraint, cast to the specified anchor type.

Remarks

This method is useful for retrieving the second anchor when working with anchor-based constraints.

Applies to