UIAttachmentBehavior.CreateLimitAttachment 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.
Static factory method to create attachments that limit how far two items can be from each other.
[Foundation.Export("limitAttachmentWithItem:offsetFromCenter:attachedToItem:offsetFromCenter:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static UIKit.UIAttachmentBehavior CreateLimitAttachment (UIKit.IUIDynamicItem item1, UIKit.UIOffset offsetFromCenter, UIKit.IUIDynamicItem item2, UIKit.UIOffset offsetFromCenter2);
static member CreateLimitAttachment : UIKit.IUIDynamicItem * UIKit.UIOffset * UIKit.IUIDynamicItem * UIKit.UIOffset -> UIKit.UIAttachmentBehavior
Parameters
- item1
- IUIDynamicItem
An item.
- offsetFromCenter
- UIOffset
The attachment point for item1
. Values other than 0 create torque.
- item2
- IUIDynamicItem
An item.
- offsetFromCenter2
- UIOffset
he attachment point for item2
. Values other than 0 create torque.
Returns
- Attributes