iOS Guides | Samples

UIKit.UILayoutGuide Class

A rectangular area used for defining autolayout constraints.

See Also: UILayoutGuide


[Foundation.Register("UILayoutGuide", true)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public class UILayoutGuide : NSObject, INSCoding, IDisposable

Related content


Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions:

The members of UIKit.UILayoutGuide are listed below.

See Also: NSObject

Public Constructors

Default constructor, initializes a new instance of this class.
A constructor that initializes the object from the data stored in the unarchiver object.

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

BottomAnchorNSLayoutYAxisAnchor. The bottom edge of the guide.
CenterXAnchorNSLayoutXAxisAnchor. The horizontal center of the guide.
CenterYAnchorNSLayoutYAxisAnchor. The vertical center of the guide.
ClassHandleIntPtr. The handle for this class.
HeightAnchorNSLayoutDimension. The vertical extent of the guide.
IdentifierString. A developer-provided name for the guide.
LayoutFrameCGRect. The frame of the guide, in it's owning UIView object's coordinate system.
LeadingAnchorNSLayoutXAxisAnchor. The leading edge of the guide.
LeftAnchorNSLayoutXAxisAnchor. The left edge of the guide.
OwningViewUIView. The UIView that contains this guide.
RightAnchorNSLayoutXAxisAnchor. The right edge of the guide.
TopAnchorNSLayoutYAxisAnchor. The top edge of the guide.
TrailingAnchorNSLayoutXAxisAnchor. The trailing edge of the guide.
WidthAnchorNSLayoutDimension. The width of the guide.

Public Methods

Encodes the state of the object on the provided encoder

Protected Methods

Releases the resources used by the UILayoutGuide object.