iOS Guides | Samples

UIKit.UILayoutGuide Class

A rectangular area used for defining autolayout constraints.

See Also: UILayoutGuide

Syntax

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

Related content

Requirements

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

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

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

Public Methods

EncodeTo(NSCoder)
Encodes the state of the object on the provided encoder

Protected Methods

override
Dispose(Boolean)
Releases the resources used by the UILayoutGuide object.