BoundsConstraint.FromExpression 方法

定義

傳回 BoundsConstraint 物件,其中包含編譯後的 expression 版本,並相對於 expression 中參考的 parents 或檢視。

public static Xamarin.Forms.BoundsConstraint FromExpression (System.Linq.Expressions.Expression<Func<Xamarin.Forms.Rectangle>> expression, System.Collections.Generic.IEnumerable<Xamarin.Forms.View> parents = default);
static member FromExpression : System.Linq.Expressions.Expression<Func<Xamarin.Forms.Rectangle>> * seq<Xamarin.Forms.View> -> Xamarin.Forms.BoundsConstraint

參數

expression
System.Linq.Expressions.Expression<System.Func<Rectangle>>

要從中編譯條件約束的運算式。

parents
System.Collections.Generic.IEnumerable<View>

編譯條件約束時所要考量的父系。

傳回

適用於