[]
Anchors a LayoutRect to the left and right sides and rotation angle of anchorRect
.
The top and bottom sides are not fixed and require additional constraints.
public void AnchorLeftRight(LayoutRect anchorRect, float paddingLeft, float paddingRight)
Public Sub AnchorLeftRight(anchorRect As LayoutRect, paddingLeft As Single, paddingRight 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 | paddingRight | The inner padding relative to the right side of the |
Anchors a LayoutRect to the left and right sides and rotation angle of anchorRect
and sets the height.
The vertical position is not fixed and requires an additional constraint.
public void AnchorLeftRight(LayoutRect anchorRect, float paddingLeft, float paddingRight, float height)
Public Sub AnchorLeftRight(anchorRect As LayoutRect, 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 | 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. |