Page 1 of 1

how to rotate AnnotationXY Text?

Posted: Fri Aug 18, 2017 1:58 am
by lee kyu young
AnnotationXY _slotLineAnnotation = new AnnotationXY();
_slotLineAnnotation.Text ="TEST";

Question :
How do i text show vertical??
no use "RotateAngle = 90f;"

i want only text vertical to show

Re: how to rotate AnnotationXY Text?

Posted: Fri Aug 18, 2017 1:35 pm
by ArctionKestutis
Hello,

If you want each letter to be at new line, just insert '\n' symbol.
For example

Code: Select all

annot.Text = "R\ne\nc\nt\na\nn\ng\nl\ne\nA\nr\nr\no\nw\n \nR\ne\nl\na\nt\ni\nv\ne\nT\no\nT\na\nr\ng\ne\nt\n";
The string "RectangleArrow RelativeToTarget" should look like this
Vertical text
Vertical text
VerticalAnnotation.png (33.85 KiB) Viewed 15196 times
All the best.

Re: how to rotate AnnotationXY Text?

Posted: Sun Aug 20, 2017 11:26 pm
by lee kyu young
hi!
Thank you for your reply
i'd like to rotate the text 90 degrees.

Re: how to rotate AnnotationXY Text?

Posted: Mon Aug 21, 2017 8:02 am
by ArctionKestutis
Hi,

The whole text-box rotation is controlled by Annotation.RotateAngle. If you set to 90 or -90, you should have it orientated vertically (as Y-Axis title).
If it is not working in your app, it must be overwritten somewhere or cancelled by other properties.
You can check how properties affect rendering by running our Demo App's any example with Annotation and then just change Annotation.RotateAngle value (through "Property grid").

Hope this helps.
All the best.