[]
Anchors a LayoutRect to the top left corner and rotation angle of anchorRect
.
The bottom right corner is not fixed and requires additional constraints.
public void AnchorTopLeft(LayoutRect anchorRect, float paddingTop, float paddingLeft)
Public Sub AnchorTopLeft(anchorRect As LayoutRect, paddingTop As Single, paddingLeft 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 |
Anchors a LayoutRect to the top left corner and rotation angle of anchorRect
and sets width/height.
public void AnchorTopLeft(LayoutRect anchorRect, float paddingTop, float paddingLeft, float width, float height)
Public Sub AnchorTopLeft(anchorRect As LayoutRect, paddingTop As Single, paddingLeft As Single, width 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 | width | The proposed width. |
float | height | The proposed height. |