NSLayoutConstraint.SecondAnchor<AnchorType> 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.
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.