UIKit.NSLayoutConstraint.FromVisualFormat Method
Factory method for creating a constraint using Visual Format Language.

Syntax

[Foundation.Export("constraintsWithVisualFormat:options:metrics:views:")]
public static NSLayoutConstraint[] FromVisualFormat (string format, NSLayoutFormatOptions formatOptions, Foundation.NSDictionary metrics, Foundation.NSDictionary views)

Parameters

format
Visual format to use to create the constraints.
formatOptions
options.
metrics

Dictionary containing mapping names to numbers, where each name is associated with the given metric.

This parameter can be null.

views
Dictionary containing mappings of names to UIViews.

Returns

An array of layout constraints that are suitable to be added to a UIView using UIView.AddConstraints method.

Remarks

It is easier to use the NSLayoutConstraint.FromVisualFormat(string, NSLayoutFormatOptions, Object[]) overload as it combines support for both metrics and views in a single call.

Requirements

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