C# 클래스 Praeclarum.UI.Layout

파일 보기 프로젝트 열기: praeclarum/Praeclarum

공개 메소드들

메소드 설명
ConstrainLayout ( this view, Expression constraints ) : NSLayoutConstraint[]

Constrains the layout of subviews according to equations and inequalities specified in constraints. Issue multiple constraints per call using the && operator.

e.g. button.Frame.Left >= text.Frame.Right + 22 && button.Frame.Width == View.Frame.Width * 0.42f

ConstrainLayout ( this view, Expression constraints, UILayoutPriority priority ) : NSLayoutConstraint[]

Constrains the layout of subviews according to equations and inequalities specified in constraints. Issue multiple constraints per call using the && operator.

e.g. button.Frame.Left >= text.Frame.Right + 22 && button.Frame.Width == View.Frame.Width * 0.42f

GetBaseline ( this viewFrame ) : nfloat

The baseline of the view whose frame is viewFrame. Use only when defining constraints.

GetCenterX ( this viewFrame ) : nfloat

The x coordinate of the center of the frame.

GetCenterY ( this viewFrame ) : nfloat

The y coordinate of the center of the frame.

비공개 메소드들

메소드 설명
CompileConstraint ( BinaryExpression expr, UIView constrainedView ) : NSLayoutConstraint
ConstantValue ( Expression expr ) : float
Eval ( Expression expr ) : object
FindConstraints ( Expression expr, List constraintExprs ) : void
GetRight ( Expression expr ) : Tuple
GetViewAndAttribute ( Expression expr ) : NSLayoutAttribute>.Tuple
IsConstant ( Expression expr ) : bool

메소드 상세

ConstrainLayout() 공개 정적인 메소드

Constrains the layout of subviews according to equations and inequalities specified in constraints. Issue multiple constraints per call using the && operator.

e.g. button.Frame.Left >= text.Frame.Right + 22 && button.Frame.Width == View.Frame.Width * 0.42f

public static ConstrainLayout ( this view, Expression constraints ) : NSLayoutConstraint[]
view this The superview laying out the referenced subviews.
constraints Expression Constraint equations and inequalities.
리턴 NSLayoutConstraint[]

ConstrainLayout() 공개 정적인 메소드

Constrains the layout of subviews according to equations and inequalities specified in constraints. Issue multiple constraints per call using the && operator.

e.g. button.Frame.Left >= text.Frame.Right + 22 && button.Frame.Width == View.Frame.Width * 0.42f

public static ConstrainLayout ( this view, Expression constraints, UILayoutPriority priority ) : NSLayoutConstraint[]
view this The superview laying out the referenced subviews.
constraints Expression Constraint equations and inequalities.
priority UILayoutPriority The priority of the constraints
리턴 NSLayoutConstraint[]

GetBaseline() 공개 정적인 메소드

The baseline of the view whose frame is viewFrame. Use only when defining constraints.
public static GetBaseline ( this viewFrame ) : nfloat
viewFrame this
리턴 nfloat

GetCenterX() 공개 정적인 메소드

The x coordinate of the center of the frame.
public static GetCenterX ( this viewFrame ) : nfloat
viewFrame this
리턴 nfloat

GetCenterY() 공개 정적인 메소드

The y coordinate of the center of the frame.
public static GetCenterY ( this viewFrame ) : nfloat
viewFrame this
리턴 nfloat