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