verticalAlign

Represents the vertical alignment of text within a bounding box.

This property defines how text is vertically positioned in relation to the bounds of a defined space. The value is directly tied to the verticalAlign property of the associated WriteStyle and can influence text layout during rendering.

The alignment can be set using a nullable Double value, where:

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

  • 0.5 centers text vertically within the bounding box.

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

  • Intermediate values allow proportional vertical alignments.

If set to null, vertical alignment is disabled, and default layout behavior is applied.

Changes to this property will immediately affect the vertical positioning of text rendered using the TextWriter class.