verticalAlign

Defines the vertical alignment of text within a bounding box.

This property is represented as a nullable Double value, where:

  • 0.0 aligns the text to the top of the bounding box.

  • 0.5 centers the text vertically within the bounding box.

  • 1.0 aligns the text to the bottom of the bounding box.

  • Intermediate values allow proportional alignment between the top and bottom.

When set to null, vertical alignment is disabled, and the default behavior is applied.

This property influences the final vertical positioning of text during rendering, ensuring that the vertical alignment adheres to the specified value within the context of the defined bounding box.