horizontalAlign
Represents the horizontal alignment of text within the text box managed by the TextWriter
.
The property is a proxy to the horizontalAlign
field of the WriteStyle
object associated with the TextWriter
. It controls how text is aligned horizontally within the text box:
0.0
aligns text to the left.0.5
centers text within the bounding box.1.0
aligns text to the right.Intermediate values proportionally adjust the horizontal alignment.
A null
value disables explicit horizontal alignment, reverting to the default behavior.
Modifying this property affects the layout of text rendered by the TextWriter
according to the specified alignment value.