RelativeLayout.IRelativeList<T>.Add 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.
Overloads
Add(T, Expression<Func<Rectangle>>) |
Constrains |
Add(T, Expression<Func<Double>>, Expression<Func<Double>>, Expression<Func<Double>>, Expression<Func<Double>>) |
Constrains |
Add(T, Constraint, Constraint, Constraint, Constraint) |
Constrains |
Add(T, Expression<Func<Rectangle>>)
Constrains view
to bounds
and adds it to the layout.
public void Add (T view, System.Linq.Expressions.Expression<Func<Xamarin.Forms.Rectangle>> bounds);
abstract member Add : 'T * System.Linq.Expressions.Expression<Func<Xamarin.Forms.Rectangle>> -> unit
Parameters
- view
- T
The view to add.
- bounds
- System.Linq.Expressions.Expression<System.Func<Rectangle>>
The bounding rectangle.
Applies to
Add(T, Expression<Func<Double>>, Expression<Func<Double>>, Expression<Func<Double>>, Expression<Func<Double>>)
Constrains view
to the rectangle that is defined by x
, y
, width
, and height
, and adds it to the layout.
public void Add (T view, System.Linq.Expressions.Expression<Func<double>> x = default, System.Linq.Expressions.Expression<Func<double>> y = default, System.Linq.Expressions.Expression<Func<double>> width = default, System.Linq.Expressions.Expression<Func<double>> height = default);
abstract member Add : 'T * System.Linq.Expressions.Expression<Func<double>> * System.Linq.Expressions.Expression<Func<double>> * System.Linq.Expressions.Expression<Func<double>> * System.Linq.Expressions.Expression<Func<double>> -> unit
Parameters
- view
- T
The view to add.
- x
- System.Linq.Expressions.Expression<System.Func<System.Double>>
The X coordinate of the top left corner of the bounding rectangle.
- y
- System.Linq.Expressions.Expression<System.Func<System.Double>>
The Y coordinate of the top left corner of the bounding rectangle
- width
- System.Linq.Expressions.Expression<System.Func<System.Double>>
The width of the bounding rectangle
- height
- System.Linq.Expressions.Expression<System.Func<System.Double>>
The height of the bounding rectangle
Applies to
Add(T, Constraint, Constraint, Constraint, Constraint)
Constrains view
by xConstraint
, yConstraint
, widthConstraint
, and heightConstraint
, and adds it to the layout.
public void Add (T view, Xamarin.Forms.Constraint xConstraint = default, Xamarin.Forms.Constraint yConstraint = default, Xamarin.Forms.Constraint widthConstraint = default, Xamarin.Forms.Constraint heightConstraint = default);
abstract member Add : 'T * Xamarin.Forms.Constraint * Xamarin.Forms.Constraint * Xamarin.Forms.Constraint * Xamarin.Forms.Constraint -> unit
Parameters
- view
- T
The view to add.
- xConstraint
- Constraint
The X constraint.
- yConstraint
- Constraint
The Y constraint.
- widthConstraint
- Constraint
The width constraint.
- heightConstraint
- Constraint
The height constraint.