[]
Adds a SizeConstraint.
public SizeConstraint AppendSizeConstraint(TargetParam targetParam, float size)
Public Function AppendSizeConstraint(targetParam As TargetParam, size As Single) As SizeConstraint
| Type | Name | Description |
|---|---|---|
| TargetParam | targetParam | The target parameter of the current LayoutRect. |
| float | size | The proposed value of the width or height. |
| Type | Description |
|---|---|
| SizeConstraint | New constraint just added. |
Adds a SizeConstraint relative to anchorRect.
public SizeConstraint AppendSizeConstraint(TargetParam targetParam, LayoutRect anchorRect, AnchorParam anchorParam, float delta = 0, float multiplier = 1)
Public Function AppendSizeConstraint(targetParam As TargetParam, anchorRect As LayoutRect, anchorParam As AnchorParam, Optional delta As Single = 0, Optional multiplier As Single = 1) As SizeConstraint
| Type | Name | Description |
|---|---|---|
| TargetParam | targetParam | The target parameter of the current LayoutRect. |
| LayoutRect | anchorRect | The referenced LayoutRect or null to reference the owner LayoutView. |
| AnchorParam | anchorParam | The source parameter of the |
| float | delta | An increment to the value of the source (anchor) parameter. |
| float | multiplier | A multiplier to the value of the source parameter; applied before adding the |
| Type | Description |
|---|---|
| SizeConstraint | New constraint just added. |
Adds a SizeConstraint relative to the distance between anchorPoint1 and anchorPoint2.
public SizeConstraint AppendSizeConstraint(TargetParam targetParam, AnchorPoint anchorPoint1, AnchorPoint anchorPoint2, float delta = 0, float multiplier = 1)
Public Function AppendSizeConstraint(targetParam As TargetParam, anchorPoint1 As AnchorPoint, anchorPoint2 As AnchorPoint, Optional delta As Single = 0, Optional multiplier As Single = 1) As SizeConstraint
| Type | Name | Description |
|---|---|---|
| TargetParam | targetParam | The target parameter of the current LayoutRect. |
| AnchorPoint | anchorPoint1 | The first referenced AnchorPoint. |
| AnchorPoint | anchorPoint2 | The second referenced AnchorPoint. |
| float | delta | An increment to the value of the source distance. |
| float | multiplier | A multiplier to the value of the source distance; applied before adding the |
| Type | Description |
|---|---|
| SizeConstraint | New constraint just added. |