This property reflects the vertical alignment of text within its
rectangle.
VAlign specifies the text rectangle vertical alignment within
the Canvas, whilst TextVAlign specified the text alignment within
its rectangle, if one has been set via the Canvas DrawText
parameters.
You can specify a value ranging from zero to one:
- 0 corresponds to top
- 0.5 corresponds to middle
- 1 corresponds to bottom.
If you do not specify a rectangle for the text, then this
property will position the text in the Canvas, because when no
rectangle is specified the entire Canvas rectangle is used. VAlign
will have no effect in this case.
|