[]
Anchors a LayoutRect to the left, top, bottom sides and rotation angle of anchorRect
.
The right side is not fixed and requires an additional constraint.
public void AnchorLeftTopBottom(LayoutRect anchorRect, float paddingLeft, float paddingTop, float paddingBottom)
Public Sub AnchorLeftTopBottom(anchorRect As LayoutRect, paddingLeft As Single, paddingTop As Single, paddingBottom As Single)
Type | Name | Description |
---|---|---|
LayoutRect | anchorRect | The referenced LayoutRect or null to reference the owner LayoutView. |
float | paddingLeft | The inner padding relative to the left side of the |
float | paddingTop | The inner padding relative to the top side of the |
float | paddingBottom | The inner padding relative to the bottom side of the |
Anchors a LayoutRect to the left, top, bottom sides and rotation angle of anchorRect
and sets the width.
public void AnchorLeftTopBottom(LayoutRect anchorRect, float paddingLeft, float paddingTop, float paddingBottom, float width)
Public Sub AnchorLeftTopBottom(anchorRect As LayoutRect, paddingLeft As Single, paddingTop As Single, paddingBottom As Single, width As Single)
Type | Name | Description |
---|---|---|
LayoutRect | anchorRect | The referenced LayoutRect or null to reference the owner LayoutView. |
float | paddingLeft | The inner padding relative to the left side of the |
float | paddingTop | The inner padding relative to the top side of the |
float | paddingBottom | The inner padding relative to the bottom side of the |
float | width | The proposed width. |