how to rotate AnnotationXY Text?

Not familiar with licensing? Need help in installing LightningChart Ultimate SDK? User's manual is missing? Post general questions here.

Moderator: Arction_LasseP

Post Reply
lee kyu young
Posts: 2
Joined: Fri Aug 18, 2017 1:45 am

how to rotate AnnotationXY Text?

Post by lee kyu young » Fri Aug 18, 2017 1:58 am

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

ArctionKestutis
Posts: 367
Joined: Mon Mar 14, 2016 9:22 am

Re: how to rotate AnnotationXY Text?

Post by ArctionKestutis » Fri Aug 18, 2017 1:35 pm

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
VerticalAnnotation.png
Vertical text
VerticalAnnotation.png (33.85 KiB) Viewed 4370 times
All the best.

lee kyu young
Posts: 2
Joined: Fri Aug 18, 2017 1:45 am

Re: how to rotate AnnotationXY Text?

Post by lee kyu young » Sun Aug 20, 2017 11:26 pm

hi!
Thank you for your reply
i'd like to rotate the text 90 degrees.

ArctionKestutis
Posts: 367
Joined: Mon Mar 14, 2016 9:22 am

Re: how to rotate AnnotationXY Text?

Post by ArctionKestutis » Mon Aug 21, 2017 8:02 am

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.

Post Reply