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

Syntax

public static NSLayoutConstraint[] FromVisualFormat (string format, NSLayoutFormatOptions formatOptions, params object[] viewsAndMetrics)

Parameters

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

Pairs of names and values. The names should be strings (or NSStrings) and the values should be either UIViews, numbers (any C# number or NSNumber) or ObjCRuntime.INativeObject instances that are suitable to be passed to the underlying engine. 

 This binds the provided name with the view or binds the name with the number as a metric.

Returns

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

Remarks

c# Example

NSLayoutConstraint.FromVisualFormat ("|-8-[messageView]-8-|", NSLayoutOptions.None, "messageView", MakeMessageView ());
	    

Requirements

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