horizontalAlign
Controls the horizontal alignment of text within a defined bounding box.
The value is a nullable Double
where:
0.0
aligns the text to the left of the bounding box.0.5
centers the text within the bounding box.1.0
aligns the text to the right of the bounding box.Interpolated values between
0.0
and1.0
achieve proportional alignment.
When set to null
, horizontal alignment is disabled and the default behavior is used.
This property is specifically applied during the rendering of text, ensuring that the horizontal positioning of text tokens is adjusted based on the value set.