Rectangle tool TextAlignment doesn't work with multi-lines.
Posted: Fri Oct 10, 2008 3:20 pm
If I have a multi-line annotation in a Rectangle tool with the TextAlignment set to center, it doesn't center the text on each line.
Example:
Long Line Of Text
Short
A
Should be:
Long Line Of Text
......Short
.........A
The way TextAlignment is currently implemented, it simply shifts all the lines a few pixels left or right based on the longest line.
To reproduce, use the chart editor in the designer to add a rectangle tool. Paste the text above into it. Then, change the text alignment and observe the effects.
Thanks for the help.
Example:
Long Line Of Text
Short
A
Should be:
Long Line Of Text
......Short
.........A
The way TextAlignment is currently implemented, it simply shifts all the lines a few pixels left or right based on the longest line.
To reproduce, use the chart editor in the designer to add a rectangle tool. Paste the text above into it. Then, change the text alignment and observe the effects.
Thanks for the help.