Alignment
live Describes a 2D alignment position within a container. Values range from -1 (start) to 1 (end) on each axis, with 0 representing the center.
Constructor
Alignment
Creates an alignment with specific horizontal and vertical values.
| Parameter | Description |
|---|---|
x | Horizontal position in the range [-1, 1]. |
y | Vertical position in the range [-1, 1]. |
Properties
BottomCenter
Bottom-center.
BottomLeft
Bottom-left corner.
BottomRight
Bottom-right corner.
Center
Exact center.
CenterLeft
Center-left.
CenterRight
Center-right.
TopCenter
Top-center.
TopLeft
Top-left corner.
TopRight
Top-right corner.
X
Horizontal alignment in the range [-1, 1]. -1 is left, 0 is center, 1 is right.
Y
Vertical alignment in the range [-1, 1]. -1 is top, 0 is center, 1 is bottom.
Methods
Equals
Equals
GetHashCode
ToString
Last updated on